KEMBAR78
Main - Lua 3 | PDF | Computer File | Operating System Technology
0% found this document useful (0 votes)
31 views5 pages

Main - Lua 3

The document is a Lua script for a Roblox game called 'Prison Life', utilizing the Rayfield library to create a user interface for various functionalities. It includes features such as a jump boost toggle, a walk speed slider, and teleportation buttons to specific locations within the game. Additionally, it implements a noclip feature that allows players to pass through walls, with a GUI to toggle the feature on and off.

Uploaded by

929cp2b8j4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views5 pages

Main - Lua 3

The document is a Lua script for a Roblox game called 'Prison Life', utilizing the Rayfield library to create a user interface for various functionalities. It includes features such as a jump boost toggle, a walk speed slider, and teleportation buttons to specific locations within the game. Additionally, it implements a noclip feature that allows players to pass through walls, with a GUI to toggle the feature on and off.

Uploaded by

929cp2b8j4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

local Rayfield = loadstring(game:HttpGet('https://sirius.

menu/rayfield'))()

local Window = Rayfield:CreateWindow({


Name = "prison life",
LoadingTitle = "prison life hub",
LoadingSubtitle = "by SFscript",
ConfigurationSaving = {
Enabled = true,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "sfscriptsprisonlife"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include
discord.gg/. E.g. discord.gg/ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every
time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key", -- It is recommended to use something unique as other
scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key,
they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site
you would like Rayfield to get the key from
Key = {"Hello"} -- List of keys that will be accepted by the system, can be
RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})

local MainTab = Window:CreateTab("Home", nil) -- Title, Image


local MainSection = MainTab:CreateSection("Section Example")

Rayfield:Notify({
Title = "Script Active",
Content = "prison life script made by sfscript",
Duration = 6.5,
Image = nil,
Actions = { -- Notification Buttons
Ignore = {
Name = "Okay!",
Callback = function()
print("The user tapped Okay!")
end
},
},
})

local Toggle = MainTab:CreateToggle({


Name = "JumpBoost",
CurrentValue = false,
Flag = "Toggle1",
Callback = function(Value)
if Value == true then
game:GetService('Players').LocalPlayer.Character.Humanoid.JumpPower =
100
else
game:GetService('Players').LocalPlayer.Character.Humanoid.JumpPower =
50 -- or whatever the default jump power is
end
end,
})

local Slider = MainTab:CreateSlider({


Name = "walkspeed",
Range = {0, 300},
Increment = 1,
Suffix = "speed",
CurrentValue = 16,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
end,
})

local TeleportTab = Window:CreateTab("teleport", niil) -- Title, Image


local Section = TeleportTab:CreateSection("locations")

local Button = TeleportTab:CreateButton({


Name = "crimbase",
Callback = function()
local player = game:GetService("Players").LocalPlayer
local teleportPos = Vector3.new(-850,100,2000)

player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPos)
end,
})

local Button = TeleportTab:CreateButton({


Name = "prison",
Callback = function()
local player = game:GetService("Players").LocalPlayer
local teleportPos = Vector3.new(910,100,2380)

player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPos)
end,
})

local Button = TeleportTab:CreateButton({


Name = "yard",
Callback = function()
local player = game:GetService("Players").LocalPlayer
local teleportPos = Vector3.new(820,100,2430)

player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPos)
end,
})

local Button = TeleportTab:CreateButton({


Name = "armory",
Callback = function()
local player = game:GetService("Players").LocalPlayer
local teleportPos = Vector3.new(820,100,2450)

player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPos)
end,
})

local Workspace = game:GetService("Workspace")


local CoreGui = game:GetService("CoreGui")
local Players = game:GetService("Players")
local Noclip = Instance.new("ScreenGui")
local BG = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Toggle = Instance.new("TextButton")
local StatusPF = Instance.new("TextLabel")
local Status = Instance.new("TextLabel")
local Credit = Instance.new("TextLabel")
local Plr = Players.LocalPlayer
local Clipon = false

Noclip.Name = "Noclip"
Noclip.Parent = game.CoreGui

BG.Name = "BG"
BG.Parent = Noclip
BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
BG.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
BG.BorderSizePixel = 2
BG.Position = UDim2.new(0.149479166, 0, 0.82087779, 0)
BG.Size = UDim2.new(0, 210, 0, 127)
BG.Active = true
BG.Draggable = true

Title.Name = "Title"
Title.Parent = BG
Title.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
Title.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
Title.BorderSizePixel = 2
Title.Size = UDim2.new(0, 210, 0, 33)
Title.Font = Enum.Font.Highway
Title.Text = "Noclip"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.FontSize = Enum.FontSize.Size32
Title.TextSize = 30
Title.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
Title.TextStrokeTransparency = 0

Toggle.Parent = BG
Toggle.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
Toggle.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
Toggle.BorderSizePixel = 2
Toggle.Position = UDim2.new(0.152380958, 0, 0.374192119, 0)
Toggle.Size = UDim2.new(0, 146, 0, 36)
Toggle.Font = Enum.Font.Highway
Toggle.FontSize = Enum.FontSize.Size28
Toggle.Text = "Toggle"
Toggle.TextColor3 = Color3.new(1, 1, 1)
Toggle.TextSize = 25
Toggle.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
Toggle.TextStrokeTransparency = 0

StatusPF.Name = "StatusPF"
StatusPF.Parent = BG
StatusPF.BackgroundColor3 = Color3.new(1, 1, 1)
StatusPF.BackgroundTransparency = 1
StatusPF.Position = UDim2.new(0.314285725, 0, 0.708661377, 0)
StatusPF.Size = UDim2.new(0, 56, 0, 20)
StatusPF.Font = Enum.Font.Highway
StatusPF.FontSize = Enum.FontSize.Size24
StatusPF.Text = "Status:"
StatusPF.TextColor3 = Color3.new(1, 1, 1)
StatusPF.TextSize = 20
StatusPF.TextStrokeColor3 = Color3.new(0.333333, 0.333333, 0.333333)
StatusPF.TextStrokeTransparency = 0
StatusPF.TextWrapped = true

Status.Name = "Status"
Status.Parent = BG
Status.BackgroundColor3 = Color3.new(1, 1, 1)
Status.BackgroundTransparency = 1
Status.Position = UDim2.new(0.580952346, 0, 0.708661377, 0)
Status.Size = UDim2.new(0, 56, 0, 20)
Status.Font = Enum.Font.Highway
Status.FontSize = Enum.FontSize.Size14
Status.Text = "off"
Status.TextColor3 = Color3.new(0.666667, 0, 0)
Status.TextScaled = true
Status.TextSize = 14
Status.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
Status.TextWrapped = true
Status.TextXAlignment = Enum.TextXAlignment.Left

Credit.Name = "Credit"
Credit.Parent = BG
Credit.BackgroundColor3 = Color3.new(1, 1, 1)
Credit.BackgroundTransparency = 1
Credit.Position = UDim2.new(0.195238099, 0, 0.866141737, 0)
Credit.Size = UDim2.new(0, 128, 0, 17)
Credit.Font = Enum.Font.SourceSans
Credit.FontSize = Enum.FontSize.Size18
Credit.Text = "Created by Sheepz"
Credit.TextColor3 = Color3.new(1, 1, 1)
Credit.TextSize = 16
Credit.TextStrokeColor3 = Color3.new(0.196078, 0.196078, 0.196078)
Credit.TextStrokeTransparency = 0
Credit.TextWrapped = true

Toggle.MouseButton1Click:connect(function()
if Status.Text == "off" then
Clipon = true
Status.Text = "on"
Status.TextColor3 = Color3.new(0,185,0)
Stepped = game:GetService("RunService").Stepped:Connect(function()
if not Clipon == false then
for a, b in pairs(Workspace:GetChildren()) do
if b.Name == Plr.Name then
for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do
if v:IsA("BasePart") then
v.CanCollide = false
end end end end
else
Stepped:Disconnect()
end
end)
elseif Status.Text == "on" then
Clipon = false
Status.Text = "off"
Status.TextColor3 = Color3.new(170,0,0)
end
end)

You might also like