Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local PRISONLIFEGUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local INFAMMO = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local Btools = Instance.new("TextButton")
- local speedoff = Instance.new("TextButton")
- local NOCLIP = Instance.new("TextButton")
- local SpeedHack = Instance.new("TextButton")
- local Gravity = Instance.new("TextButton")
- local GravityOff = Instance.new("TextButton")
- local NFJUMP = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local Troll = Instance.new("TextButton")
- local OpenCloseButton = Instance.new("TextButton")
- --Properties:
- PRISONLIFEGUI.Name = "PRISON LIFE GUI"
- PRISONLIFEGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- PRISONLIFEGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- PRISONLIFEGUI.ResetOnSpawn = false
- Frame.Parent = PRISONLIFEGUI
- Frame.BackgroundColor3 = Color3.new(0.309804, 0.309804, 0.309804)
- Frame.BackgroundTransparency = 0.10000000149012
- Frame.BorderSizePixel = 4
- Frame.Position = UDim2.new(0.412884057, 0, 0.366513491, 0)
- Frame.Size = UDim2.new(0, 285, 0, 271)
- Frame.Visible = false
- INFAMMO.Name = "INF/AMMO"
- INFAMMO.Parent = Frame
- INFAMMO.BackgroundColor3 = Color3.new(0.207843, 1, 0.207843)
- INFAMMO.Position = UDim2.new(-0.00176573638, 0, 0.0511940829, 0)
- INFAMMO.Size = UDim2.new(0, 79, 0, 36)
- INFAMMO.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- INFAMMO.Font = Enum.Font.Cartoon
- INFAMMO.Text = "INF/Amo"
- INFAMMO.TextColor3 = Color3.new(0, 0, 0)
- INFAMMO.TextScaled = true
- INFAMMO.TextSize = 14
- INFAMMO.TextWrapped = true
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
- TextLabel.Position = UDim2.new(0, 0, -0.187699378, 0)
- TextLabel.Size = UDim2.new(0, 284, 0, 50)
- TextLabel.Font = Enum.Font.Garamond
- TextLabel.Text = "PRISON LIFE GUI"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
- TextLabel_2.Position = UDim2.new(-0.00176573638, 0, 0.88241148, 0)
- TextLabel_2.Size = UDim2.new(0, 285, 0, 39)
- TextLabel_2.Font = Enum.Font.SciFi
- TextLabel_2.Text = "By IRaphaellIT"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- Btools.Name = "Btools"
- Btools.Parent = Frame
- Btools.BackgroundColor3 = Color3.new(1, 1, 1)
- Btools.Position = UDim2.new(0.686099827, 0, 0.459396094, 0)
- Btools.Size = UDim2.new(0, 86, 0, 46)
- Btools.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- Btools.Font = Enum.Font.SourceSans
- Btools.Text = "Btools"
- Btools.TextColor3 = Color3.new(0, 0, 0)
- Btools.TextScaled = true
- Btools.TextSize = 14
- Btools.TextWrapped = true
- speedoff.Name = "speed off"
- speedoff.Parent = Frame
- speedoff.BackgroundColor3 = Color3.new(1, 1, 1)
- speedoff.Position = UDim2.new(0.700744808, 0, 0.0504821539, 0)
- speedoff.Size = UDim2.new(0, 76, 0, 36)
- speedoff.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- speedoff.Font = Enum.Font.Cartoon
- speedoff.Text = "SpeedHack Off"
- speedoff.TextColor3 = Color3.new(0, 0, 0)
- speedoff.TextScaled = true
- speedoff.TextSize = 14
- speedoff.TextWrapped = true
- NOCLIP.Name = "NOCLIP"
- NOCLIP.Parent = Frame
- NOCLIP.BackgroundColor3 = Color3.new(1, 1, 1)
- NOCLIP.Position = UDim2.new(0.686099827, 0, 0.248627052, 0)
- NOCLIP.Size = UDim2.new(0, 80, 0, 49)
- NOCLIP.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- NOCLIP.Font = Enum.Font.SourceSans
- NOCLIP.Text = "Noclip"
- NOCLIP.TextColor3 = Color3.new(0, 0, 0)
- NOCLIP.TextScaled = true
- NOCLIP.TextSize = 14
- NOCLIP.TextWrapped = true
- SpeedHack.Name = "SpeedHack"
- SpeedHack.Parent = Frame
- SpeedHack.BackgroundColor3 = Color3.new(1, 1, 1)
- SpeedHack.Position = UDim2.new(0.380908221, 0, 0.0511940829, 0)
- SpeedHack.Size = UDim2.new(0, 65, 0, 42)
- SpeedHack.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- SpeedHack.Font = Enum.Font.Cartoon
- SpeedHack.Text = "SpeedHack"
- SpeedHack.TextColor3 = Color3.new(0, 0, 0)
- SpeedHack.TextScaled = true
- SpeedHack.TextSize = 14
- SpeedHack.TextWrapped = true
- Gravity.Name = "Gravity"
- Gravity.Parent = Frame
- Gravity.BackgroundColor3 = Color3.new(1, 1, 1)
- Gravity.Position = UDim2.new(0.0291926861, 0, 0.267077237, 0)
- Gravity.Size = UDim2.new(0, 71, 0, 45)
- Gravity.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- Gravity.Font = Enum.Font.SourceSans
- Gravity.Text = "Gravity"
- Gravity.TextColor3 = Color3.new(0, 0, 0)
- Gravity.TextScaled = true
- Gravity.TextSize = 14
- Gravity.TextWrapped = true
- GravityOff.Name = "Gravity/Off"
- GravityOff.Parent = Frame
- GravityOff.BackgroundColor3 = Color3.new(0.184314, 1, 0.686275)
- GravityOff.Position = UDim2.new(0.369543552, 0, 0.267077237, 0)
- GravityOff.Size = UDim2.new(0, 73, 0, 49)
- GravityOff.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- GravityOff.Font = Enum.Font.SourceSans
- GravityOff.Text = "Gravity/Off"
- GravityOff.TextColor3 = Color3.new(0.47451, 0.0862745, 0.207843)
- GravityOff.TextScaled = true
- GravityOff.TextSize = 14
- GravityOff.TextWrapped = true
- NFJUMP.Name = "NF JUMP"
- NFJUMP.Parent = Frame
- NFJUMP.BackgroundColor3 = Color3.new(1, 1, 1)
- NFJUMP.Position = UDim2.new(0.0272102766, 0, 0.459396064, 0)
- NFJUMP.Size = UDim2.new(0, 65, 0, 41)
- NFJUMP.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- NFJUMP.Font = Enum.Font.SourceSans
- NFJUMP.Text = "infJUMP F/ON"
- NFJUMP.TextColor3 = Color3.new(0, 0, 0)
- NFJUMP.TextScaled = true
- NFJUMP.TextSize = 14
- NFJUMP.TextWrapped = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 1
- TextButton.Position = UDim2.new(0.115775339, 0, 0.628636718, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "For you MOTHER FUCKER"
- TextButton.TextColor3 = Color3.new(0, 0.0901961, 0.701961)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- Troll.Name = "Troll"
- Troll.Parent = PRISONLIFEGUI
- Troll.BackgroundColor3 = Color3.new(1, 1, 1)
- Troll.BackgroundTransparency = 1
- Troll.BorderSizePixel = 4
- Troll.Size = UDim2.new(0, 200, 0, 50)
- Troll.Font = Enum.Font.SourceSans
- Troll.Text = "BY IRaphaellIT"
- Troll.TextColor3 = Color3.new(0.45098, 0, 0)
- Troll.TextScaled = true
- Troll.TextSize = 14
- Troll.TextWrapped = true
- OpenCloseButton.Name = "OpenCloseButton"
- OpenCloseButton.Parent = PRISONLIFEGUI
- OpenCloseButton.BackgroundColor3 = Color3.new(0, 0, 0)
- OpenCloseButton.Position = UDim2.new(0, 0, 0, 163)
- OpenCloseButton.Size = UDim2.new(0, 80, 0, 30)
- OpenCloseButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
- OpenCloseButton.Font = Enum.Font.Cartoon
- OpenCloseButton.Text = "Open"
- OpenCloseButton.TextColor3 = Color3.new(1, 1, 1)
- OpenCloseButton.TextScaled = true
- OpenCloseButton.TextSize = 18
- OpenCloseButton.TextWrapped = true
- -- Scripts:
- function SCRIPT_YJKA67_FAKESCRIPT() -- INFAMMO.Script
- local script = Instance.new('Script')
- script.Parent = INFAMMO
- local newcclosure = newcclosure or function(f)
- return f
- end
- local getreg = debug.getregistry or getreg
- if not getreg then
- warn("Your exploit does not support the functions required for this script")
- end
- local make_writeable = setreadonly or make_writeable or changereadonly or change_writeable
- function hax()
- for _,o in pairs(getreg()) do
- if typeof(o) == "table" then
- make_writeable(o,false)
- o.FireRate = 0
- o.AutoFire = true
- o.Range = 10000
- o.ReloadTime = 0
- o.Damage = 500
- o.MaxAmmo = math.huge
- o.CurrentAmmo = math.huge
- o.StoredAmmo = math.huge
- end
- end
- end
- hax()
- game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
- hax()
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_YJKA67_FAKESCRIPT))
- function SCRIPT_KVSB72_FAKESCRIPT() -- INFAMMO.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = INFAMMO
- local newcclosure = newcclosure or function(f)
- return f
- end
- local getreg = debug.getregistry or getreg
- if not getreg then
- warn("Your exploit does not support the functions required for this script")
- end
- local make_writeable = setreadonly or make_writeable or changereadonly or change_writeable
- function hax()
- for _,o in pairs(getreg()) do
- if typeof(o) == "table" then
- make_writeable(o,false)
- o.FireRate = 0
- o.AutoFire = true
- o.Range = 10000
- o.ReloadTime = 0
- o.Damage = 500
- o.MaxAmmo = math.huge
- o.CurrentAmmo = math.huge
- o.StoredAmmo = math.huge
- end
- end
- end
- hax()
- game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
- hax()
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_KVSB72_FAKESCRIPT))
- function SCRIPT_OKJY90_FAKESCRIPT() -- Btools.Script
- local script = Instance.new('Script')
- script.Parent = Btools
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local On = Instance.new("StringValue")
- -- Properties
- ScreenGui.Parent = player.PlayerGui
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0, 0, 0.455743879, 0)
- TextButton.Size = UDim2.new(0, 186, 0, 35)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Btools (Off)"
- TextButton.TextColor3 = Color3.new(0.27451, 0.27451, 0.27451)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- On.Parent = TextButton
- On.Value = "Off"
- -- Scripts
- TextButton.MouseButton1Up:Connect(function()
- if On.Value == "Off" then
- On.Value = "On"
- TextButton.Text = "Btools (On)"
- else
- On.Value = "Off"
- TextButton.Text = "Btools (Off)"
- end
- end)
- mouse.Button1Up:Connect(function()
- if On.Value == "Off" then
- print('btools off')
- else
- if mouse.Target.Locked == true then
- mouse.Target:Destroy()
- else
- mouse.Target:Destroy()
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_OKJY90_FAKESCRIPT))
- function SCRIPT_VUOZ80_FAKESCRIPT() -- Btools.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = Btools
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local On = Instance.new("StringValue")
- -- Properties
- ScreenGui.Parent = player.PlayerGui
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0, 0, 0.455743879, 0)
- TextButton.Size = UDim2.new(0, 186, 0, 35)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Btools (Off)"
- TextButton.TextColor3 = Color3.new(0.27451, 0.27451, 0.27451)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- On.Parent = TextButton
- On.Value = "Off"
- -- Scripts
- TextButton.MouseButton1Up:Connect(function()
- if On.Value == "Off" then
- On.Value = "On"
- TextButton.Text = "Btools (On)"
- else
- On.Value = "Off"
- TextButton.Text = "Btools (Off)"
- end
- end)
- mouse.Button1Up:Connect(function()
- if On.Value == "Off" then
- print('btools off')
- else
- if mouse.Target.Locked == true then
- mouse.Target:Destroy()
- else
- mouse.Target:Destroy()
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_VUOZ80_FAKESCRIPT))
- function SCRIPT_YARE85_FAKESCRIPT() -- speedoff.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = speedoff
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_YARE85_FAKESCRIPT))
- function SCRIPT_OABF66_FAKESCRIPT() -- NOCLIP.Script
- local script = Instance.new('Script')
- script.Parent = NOCLIP
- nam = game.Players.LocalPlayer.Name
- game:GetService('RunService').Stepped:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- Workspace[nam].Head.Changed:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_OABF66_FAKESCRIPT))
- function SCRIPT_SYZR85_FAKESCRIPT() -- NOCLIP.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = NOCLIP
- nam = game.Players.LocalPlayer.Name
- game:GetService('RunService').Stepped:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- Workspace[nam].Head.Changed:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_SYZR85_FAKESCRIPT))
- function SCRIPT_LCJS72_FAKESCRIPT() -- SpeedHack.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = SpeedHack
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 250
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_LCJS72_FAKESCRIPT))
- function SCRIPT_GZYR81_FAKESCRIPT() -- Gravity.Script
- local script = Instance.new('Script')
- script.Parent = Gravity
- function Click(mouse)
- game.Workspace.Gravity = 30
- end
- script.Parent.MouseButton1Down:connect(Click)
- end
- coroutine.resume(coroutine.create(SCRIPT_GZYR81_FAKESCRIPT))
- function SCRIPT_ZVON79_FAKESCRIPT() -- GravityOff.Script
- local script = Instance.new('Script')
- script.Parent = GravityOff
- function Click(mouse)
- game.Workspace.Gravity = 300
- end
- script.Parent.MouseButton1Down:connect(Click)
- end
- coroutine.resume(coroutine.create(SCRIPT_ZVON79_FAKESCRIPT))
- function SCRIPT_FRGL80_FAKESCRIPT() -- NFJUMP.Script
- local script = Instance.new('Script')
- script.Parent = NFJUMP
- -- //~ F to toggle ~\\ --
- _G.infinjump = true
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(k)
- if _G.infinjump then
- if k:byte() == 32 then
- Humanoid = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- Humanoid:ChangeState("Jumping")
- wait(0.1)
- Humanoid:ChangeState("Seated")
- end
- end
- end)
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "f" then
- if _G.infinjump == true then
- _G.infinjump = false
- else
- _G.infinjump = true
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_FRGL80_FAKESCRIPT))
- function SCRIPT_LURJ76_FAKESCRIPT() -- NFJUMP.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = NFJUMP
- -- //~ F to toggle ~\\ --
- _G.infinjump = true
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(k)
- if _G.infinjump then
- if k:byte() == 32 then
- Humanoid = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- Humanoid:ChangeState("Jumping")
- wait(0.1)
- Humanoid:ChangeState("Seated")
- end
- end
- end)
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "f" then
- if _G.infinjump == true then
- _G.infinjump = false
- else
- _G.infinjump = true
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_LURJ76_FAKESCRIPT))
- function SCRIPT_CONJ79_FAKESCRIPT() -- PRISONLIFEGUI.DragAble
- local script = Instance.new('LocalScript')
- script.Parent = PRISONLIFEGUI
- local mousedown = false
- game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
- mousedown = true
- end)
- game.Players.LocalPlayer:GetMouse().Button1Up:Connect(function()
- mousedown = false
- end)
- local relativeToFrame
- local mouse = game.Players.LocalPlayer:GetMouse()
- while true do
- wait()
- if game.Players.LocalPlayer:GetMouse().X > (script.Parent.Frame.AbsolutePosition.X) and game.Players.LocalPlayer:GetMouse().X < (script.Parent.Frame.AbsolutePosition.X + script.Parent.Frame.AbsoluteSize.X) and game.Players.LocalPlayer:GetMouse().Y > (script.Parent.Frame.AbsolutePosition.Y) and game.Players.LocalPlayer:GetMouse().Y < (script.Parent.Frame.AbsolutePosition.Y + script.Parent.Frame.AbsoluteSize.Y) then
- script.Parent.Frame.BackgroundColor3 = Color3.fromRGB(0,255,0)
- if mousedown == true then
- relativeToFrame = Vector2.new(script.Parent.Frame.AbsolutePosition.X - mouse.X,script.Parent.Frame.AbsolutePosition.Y - mouse.Y)
- while mousedown do
- wait()
- if not mousedown then break end
- script.Parent.Frame.Position = UDim2.new(0,mouse.X + relativeToFrame.X,0, mouse.Y + relativeToFrame.Y)
- end
- end
- else
- script.Parent.Frame.BackgroundColor3 = Color3.fromRGB(255,0,0)
- end
- --[[print((script.Parent.Frame.AbsolutePosition.X + script.Parent.Frame.AbsoluteSize.X))
- print(script.Parent.Frame.AbsolutePosition.X)
- print(game.Players.LocalPlayer:GetMouse().X)]]
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_CONJ79_FAKESCRIPT))
- function SCRIPT_UKWT82_FAKESCRIPT() -- Troll.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = Troll
- local guiObject = script.Parent
- while true do
- -- Top-left
- guiObject.AnchorPoint = Vector2.new(0, 0)
- guiObject.Position = UDim2.new(0, 0, 0, 0)
- wait(1)
- -- Top
- guiObject.AnchorPoint = Vector2.new(0.5, 0)
- guiObject.Position = UDim2.new(0.5, 0, 0, 0)
- wait(1)
- -- Top-right
- guiObject.AnchorPoint = Vector2.new(1, 0)
- guiObject.Position = UDim2.new(1, 0, 0, 0)
- wait(1)
- -- Left
- guiObject.AnchorPoint = Vector2.new(0, 0.5)
- guiObject.Position = UDim2.new(0, 0, 0.5, 0)
- wait(1)
- -- Dead center
- guiObject.AnchorPoint = Vector2.new(0.5, 0.5)
- guiObject.Position = UDim2.new(0.5, 0, 0.5, 0)
- wait(1)
- -- Right
- guiObject.AnchorPoint = Vector2.new(1, 0.5)
- guiObject.Position = UDim2.new(1, 0, 0.5, 0)
- wait(1)
- -- Bottom-left
- guiObject.AnchorPoint = Vector2.new(0, 1)
- guiObject.Position = UDim2.new(0, 0, 1, 0)
- wait(1)
- -- Bottom
- guiObject.AnchorPoint = Vector2.new(0.5, 1)
- guiObject.Position = UDim2.new(0.5, 0, 1, 0)
- wait(1)
- -- Bottom-right
- guiObject.AnchorPoint = Vector2.new(1, 1)
- guiObject.Position = UDim2.new(1, 0, 1, 0)
- wait(1)
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_UKWT82_FAKESCRIPT))
- function SCRIPT_NYMV75_FAKESCRIPT() -- OpenCloseButton.OpenScript
- local script = Instance.new('Script')
- script.Parent = OpenCloseButton
- --// JAFTERGAMERTV \\--
- script.Parent.MouseButton1Click:connect(function() -- The function of when the Players Clicks.
- if script.Parent.Parent.Frame.Visible == false then -- This tells wither it is open or not.
- script.Parent.Text = "Close" -- Tells us that it is open.
- script.Parent.Parent.Frame.Visible = true -- Makes the box visible.
- else -- Otherwise
- script.Parent.Text = "Menu" -- Tells us that it is closed.
- script.Parent.Parent.Frame.Visible = false -- Makes the box Invisible
- end -- Ends the If statement.
- end) -- Ends the function in general.
- end
- coroutine.resume(coroutine.create(SCRIPT_NYMV75_FAKESCRIPT))
- function SCRIPT_EMID65_FAKESCRIPT() -- OpenCloseButton.DragAble
- local script = Instance.new('LocalScript')
- script.Parent = OpenCloseButton
- local mousedown = false
- game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
- mousedown = true
- end)
- game.Players.LocalPlayer:GetMouse().Button1Up:Connect(function()
- mousedown = false
- end)
- local relativeToFrame
- local mouse = game.Players.LocalPlayer:GetMouse()
- while true do
- wait()
- if game.Players.LocalPlayer:GetMouse().X > (script.Parent.Frame.AbsolutePosition.X) and game.Players.LocalPlayer:GetMouse().X < (script.Parent.Frame.AbsolutePosition.X + script.Parent.Frame.AbsoluteSize.X) and game.Players.LocalPlayer:GetMouse().Y > (script.Parent.Frame.AbsolutePosition.Y) and game.Players.LocalPlayer:GetMouse().Y < (script.Parent.Frame.AbsolutePosition.Y + script.Parent.Frame.AbsoluteSize.Y) then
- script.Parent.Frame.BackgroundColor3 = Color3.fromRGB(0,255,0)
- if mousedown == true then
- relativeToFrame = Vector2.new(script.Parent.Frame.AbsolutePosition.X - mouse.X,script.Parent.Frame.AbsolutePosition.Y - mouse.Y)
- while mousedown do
- wait()
- if not mousedown then break end
- script.Parent.Frame.Position = UDim2.new(0,mouse.X + relativeToFrame.X,0, mouse.Y + relativeToFrame.Y)
- end
- end
- else
- script.Parent.Frame.BackgroundColor3 = Color3.fromRGB(255,0,0)
- end
- --[[print((script.Parent.Frame.AbsolutePosition.X + script.Parent.Frame.AbsoluteSize.X))
- print(script.Parent.Frame.AbsolutePosition.X)
- print(game.Players.LocalPlayer:GetMouse().X)]]
- end
- end
- coroutine.resume(coroutine.create(SCRIPT_EMID65_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement