Advertisement
nazmoney

The Future Gui

Jul 27th, 2020
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local the_futureGUI = Instance.new("ScreenGui")
  7. local main = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10.  
  11. --Properties:
  12.  
  13. the_futureGUI.Name = "the_futureGUI"
  14. the_futureGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. the_futureGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. main.Name = "main"
  18. main.Parent = the_futureGUI
  19. main.Active = true
  20. main.BackgroundColor3 = Color3.fromRGB(52, 52, 52)
  21. main.BackgroundTransparency = 1.000
  22. main.BorderSizePixel = 0
  23. main.Position = UDim2.new(1, -444, 1, -183)
  24. main.Selectable = true
  25. main.Size = UDim2.new(0, 444, 0, 183)
  26.  
  27. TextLabel.Parent = main
  28. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29. TextLabel.BackgroundTransparency = 1.000
  30. TextLabel.Position = UDim2.new(0, 0, 0.693989038, 0)
  31. TextLabel.Size = UDim2.new(0, 444, 0, 35)
  32. TextLabel.ZIndex = 2
  33. TextLabel.Font = Enum.Font.SourceSansBold
  34. TextLabel.Text = " Press 'Z' to enable Low-Gravity"
  35. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. TextLabel.TextSize = 30.000
  37. TextLabel.TextStrokeTransparency = 0.000
  38. TextLabel.TextWrapped = true
  39. TextLabel.TextXAlignment = Enum.TextXAlignment.Right
  40.  
  41. TextLabel_2.Parent = main
  42. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextLabel_2.BackgroundTransparency = 1.000
  44. TextLabel_2.Position = UDim2.new(0, 0, 0.502732277, 0)
  45. TextLabel_2.Size = UDim2.new(0, 444, 0, 35)
  46. TextLabel_2.ZIndex = 2
  47. TextLabel_2.Font = Enum.Font.SourceSansBold
  48. TextLabel_2.Text = " Press 'X' to enable Normal-Gravity"
  49. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  50. TextLabel_2.TextSize = 30.000
  51. TextLabel_2.TextStrokeTransparency = 0.000
  52. TextLabel_2.TextWrapped = true
  53. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Right
  54.  
  55. local normalgrav = Instance.new("IntValue")
  56. normalgrav.Parent = main
  57. wait(0.001)
  58. normalgrav.Value = workspace.Gravity
  59.  
  60. -- Scripts:
  61.  
  62. local function UTFL_fake_script() -- main.lowgrav
  63. local script = Instance.new('LocalScript', main)
  64.  
  65. local userinputservice = game:GetService('UserInputService')
  66.  
  67. userinputservice.InputBegan:Connect(function(key)
  68. if key.KeyCode == Enum.KeyCode.Z then
  69. workspace.Gravity = 0
  70. end
  71. end)
  72. end
  73. coroutine.wrap(UTFL_fake_script)()
  74. local function RIDJ_fake_script() -- main.normalgrav
  75. local script = Instance.new('LocalScript', main)
  76.  
  77. local userinputservice = game:GetService('UserInputService')
  78.  
  79. userinputservice.InputBegan:Connect(function(key)
  80. if key.KeyCode == Enum.KeyCode.X then
  81. wait(0.01)
  82. workspace.Gravity = normalgrav.Value
  83. end
  84. end)
  85. end
  86. coroutine.wrap(RIDJ_fake_script)()
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement