Advertisement
Kennet_LOGG

gravity switch

Jan 31st, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. --[[
  2. © 2020 WeAreDevs
  3. A distribution of https://wearedevs.net/scripts
  4. June 13, 2020
  5.  
  6. Simply inject this script into any game using a Lua injector like JJSploit
  7. then press e while in game to turn gravity on and off.
  8. ]]
  9.  
  10. if _G.WRDGravitySwitchStarted == nil then
  11. _G.WRDGravitySwitchStarted = true
  12.  
  13. --Gets the player's mouse
  14. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  15.  
  16. --Waits until the player's mouse is found
  17. repeat wait() until mouse
  18.  
  19. --Toggles
  20. mouse.KeyDown:connect(function(key)
  21. if key:lower() == "e" then
  22. if workspace.Gravity > 0 then
  23. --Turns off gravity
  24. workspace.Gravity = 0
  25. game.StarterGui:SetCore("SendNotification", {Title="Zero Gravity"; Text="WeAreDevs.net"; Duration=1;})
  26. else
  27. --Reset to default
  28. workspace.Gravity = 196.2
  29. game.StarterGui:SetCore("SendNotification", {Title="Normal Gravity"; Text="WeAreDevs.net"; Duration=1;})
  30. end
  31. end
  32. end)
  33. end
  34.  
  35. game.StarterGui:SetCore("SendNotification", {Title="WeAreDevs.net"; Text="The Gravity Switch exploit is ready!\nPress \"e\" to toggle"; Duration=5;})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement