Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Box = Instance.new("Frame")
- local On = Instance.new("TextButton")
- local Off = Instance.new("TextButton")
- local Open = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- Box.Name = "Box"
- Box.Parent = ScreenGui
- Box.BackgroundColor3 = Color3.fromRGB(76, 229, 0)
- Box.BorderSizePixel = 0
- Box.Position = UDim2.new(0.41671735, -250, 0.644047618, -250)
- Box.Size = UDim2.new(0, 273, 0, 104)
- Box.Visible = false
- Box.Active = true
- Box.Draggable = true
- On.Name = "On"
- On.Parent = Box
- On.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- On.BackgroundTransparency = 1.000
- On.Position = UDim2.new(0.102564104, 0, 0.259615391, 0)
- On.Size = UDim2.new(0, 105, 0, 50)
- On.Font = Enum.Font.Cartoon
- On.Text = "On"
- On.TextColor3 = Color3.fromRGB(255, 255, 255)
- On.TextSize = 24.000
- On.MouseButton1Down:connect(function()
- _G.toggled = true
- while _G.toggled == true do
- wait(0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.85663, 25.1562, -276.197)
- wait(0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.08198, 139.561, 279.956)
- wait(0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-6.74717, 26.7529, -276.689)
- wait(0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(103.028, 67.3915, 159.915)
- wait(0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(36.463, 179.724, 281.109)
- end
- end)
- Off.Name = "Off"
- Off.Parent = Box
- Off.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Off.BackgroundTransparency = 1.000
- Off.Position = UDim2.new(0.516483545, 0, 0.259615391, 0)
- Off.Size = UDim2.new(0, 105, 0, 50)
- Off.Font = Enum.Font.Cartoon
- Off.Text = "Off"
- Off.TextColor3 = Color3.fromRGB(255, 255, 255)
- Off.TextSize = 24.000
- Off.MouseButton1Down:connect(function()
- _G.toggled = false
- end)
- Open.Name = "Close"
- Open.Parent = ScreenGui
- Open.BackgroundColor3 = Color3.fromRGB(76, 229, 0)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0.0194528867, 0, 0.465476185, -25)
- Open.Size = UDim2.new(0, 121, 0, 29)
- Open.Font = Enum.Font.Cartoon
- Open.Text = "Open Gui"
- Open.TextColor3 = Color3.fromRGB(255, 255, 255)
- Open.TextScaled = true
- Open.TextSize = 24.000
- Open.TextWrapped = true
- -- Scripts:
- local function ZEPSK_fake_script() -- Open.OpenScript
- local script = Instance.new('Script', Open)
- --// JAFTERGAMERTV \\--
- script.Parent.MouseButton1Click:connect(function() -- The function of when the Players Clicks.
- if script.Parent.Parent.Box.Visible == false then -- This tells wither it is open or not.
- script.Parent.Text = "Close Gui" -- Tells us that it is open.
- script.Parent.Parent.Box.Visible = true -- Makes the box visible.
- else -- Otherwise
- script.Parent.Text = "Open Gui" -- Tells us that it is closed.
- script.Parent.Parent.Box.Visible = false -- Makes the box Invisible
- end -- Ends the If statement.
- end) -- Ends the function in general.
- end
- coroutine.wrap(ZEPSK_fake_script)()
Add Comment
Please, Sign In to add comment