Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local plrx = game:GetService"Players".LocalPlayer
  2. local mx = plrx:GetMouse()
  3. local noGrav = false
  4. mx.KeyDown:connect(function(kx)
  5. if kx == "t" then
  6. if noGrav == false then
  7. noGrav = true
  8. game.workspace.Gravity = 30
  9. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  10. Text = "No Gravity: ON",
  11. Color = Color3.new(0, 1, 0)
  12. })
  13. else
  14. game.workspace.Gravity = 196.2
  15. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  16. Text = "No Gravity: OFF",
  17. Color = Color3.new(1, 0, 0)
  18. })
  19. noGrav = false
  20. end
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement