vaux19

Roblox Ninja Warrior Evolved Gui

Mar 27th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Box = Instance.new("Frame")
  8. local On = Instance.new("TextButton")
  9. local Off = Instance.new("TextButton")
  10. local Open = Instance.new("TextButton")
  11.  
  12. --Properties:
  13.  
  14. ScreenGui.Parent = game.CoreGui
  15.  
  16. Box.Name = "Box"
  17. Box.Parent = ScreenGui
  18. Box.BackgroundColor3 = Color3.fromRGB(76, 229, 0)
  19. Box.BorderSizePixel = 0
  20. Box.Position = UDim2.new(0.41671735, -250, 0.644047618, -250)
  21. Box.Size = UDim2.new(0, 273, 0, 104)
  22. Box.Visible = false
  23. Box.Active = true
  24. Box.Draggable = true
  25.  
  26. On.Name = "On"
  27. On.Parent = Box
  28. On.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29. On.BackgroundTransparency = 1.000
  30. On.Position = UDim2.new(0.102564104, 0, 0.259615391, 0)
  31. On.Size = UDim2.new(0, 105, 0, 50)
  32. On.Font = Enum.Font.Cartoon
  33. On.Text = "On"
  34. On.TextColor3 = Color3.fromRGB(255, 255, 255)
  35. On.TextSize = 24.000
  36. On.MouseButton1Down:connect(function()
  37. _G.toggled = true
  38. while _G.toggled == true do
  39. wait(0.25)
  40. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.85663, 25.1562, -276.197)
  41. wait(0.25)
  42. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.08198, 139.561, 279.956)
  43. wait(0.25)
  44. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-6.74717, 26.7529, -276.689)
  45. wait(0.25)
  46. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(103.028, 67.3915, 159.915)
  47. wait(0.25)
  48. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(36.463, 179.724, 281.109)
  49.  
  50. end
  51. end)
  52.  
  53. Off.Name = "Off"
  54. Off.Parent = Box
  55. Off.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. Off.BackgroundTransparency = 1.000
  57. Off.Position = UDim2.new(0.516483545, 0, 0.259615391, 0)
  58. Off.Size = UDim2.new(0, 105, 0, 50)
  59. Off.Font = Enum.Font.Cartoon
  60. Off.Text = "Off"
  61. Off.TextColor3 = Color3.fromRGB(255, 255, 255)
  62. Off.TextSize = 24.000
  63. Off.MouseButton1Down:connect(function()
  64. _G.toggled = false
  65. end)
  66.  
  67. Open.Name = "Close"
  68. Open.Parent = ScreenGui
  69. Open.BackgroundColor3 = Color3.fromRGB(76, 229, 0)
  70. Open.BorderSizePixel = 0
  71. Open.Position = UDim2.new(0.0194528867, 0, 0.465476185, -25)
  72. Open.Size = UDim2.new(0, 121, 0, 29)
  73. Open.Font = Enum.Font.Cartoon
  74. Open.Text = "Open Gui"
  75. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  76. Open.TextScaled = true
  77. Open.TextSize = 24.000
  78. Open.TextWrapped = true
  79.  
  80. -- Scripts:
  81.  
  82. local function ZEPSK_fake_script() -- Open.OpenScript
  83. local script = Instance.new('Script', Open)
  84.  
  85. --// JAFTERGAMERTV \\--
  86.  
  87. script.Parent.MouseButton1Click:connect(function() -- The function of when the Players Clicks.
  88. if script.Parent.Parent.Box.Visible == false then -- This tells wither it is open or not.
  89. script.Parent.Text = "Close Gui" -- Tells us that it is open.
  90. script.Parent.Parent.Box.Visible = true -- Makes the box visible.
  91. else -- Otherwise
  92. script.Parent.Text = "Open Gui" -- Tells us that it is closed.
  93. script.Parent.Parent.Box.Visible = false -- Makes the box Invisible
  94. end -- Ends the If statement.
  95. end) -- Ends the function in general.
  96. end
  97. coroutine.wrap(ZEPSK_fake_script)()
Add Comment
Please, Sign In to add comment