Advertisement
Qamyz

Untitled

Mar 10th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. local Walk = 5000;
  2. local Gravity = 10;
  3. for i, v in next, getgc'' do
  4. if typeof(v) == 'function' and debug.getupvalue(v, 'Gravity') then
  5. debug.setupvalue(v, 'Gravity', -math.abs(Gravity));
  6. debug.setupvalue(v, 'Walk', Walk)
  7. end
  8. end
  9.  
  10.  
  11. local Players = game:GetService"Players"
  12. local LocalPlayer = Players.LocalPlayer
  13. local UIS = game:GetService"UserInputService"
  14. local Mouse = LocalPlayer:GetMouse()
  15. local Toggle = false
  16. local Keys = {}
  17. local Key = Enum.KeyCode.LeftShift
  18.  
  19. local function GetKeyState(key)
  20. if (Keys[key] == nil) then Keys[key] = false end
  21. return Keys[key]
  22. end
  23.  
  24. local function PressKey(key)
  25. if (not GetKeyState(key)) then
  26. keypress(key)
  27. Keys[key] = true
  28. end
  29. end
  30.  
  31. local function ReleaseKey(key)
  32. if (GetKeyState(key)) then
  33. keyrelease(key)
  34. Keys[key] = false
  35. end
  36. end
  37.  
  38. local function ReleaseKeys()
  39. for i, v in next, Keys do
  40. if (v == true) then
  41. keyrelease(i)
  42. Keys[i] = false
  43. end
  44. end
  45. end
  46.  
  47. local Move = UIS.InputChanged:connect(function(input)
  48. if (Toggle) then
  49. local delta = input.Delta
  50. if (deltaX == 0) then
  51. ReleaseKeys()
  52. elseif (delta.X < 0) then
  53. ReleaseKey(0x57) -- W
  54. PressKey(0x53) -- S
  55. elseif (delta.X > 0) then
  56. ReleaseKey(0x53) -- S
  57. PressKey(0x57) -- W
  58. end
  59. else
  60. ReleaseKeys()
  61. end
  62. end)
  63.  
  64. local KeyDown = UIS.InputBegan:connect(function(input)
  65. if (input.KeyCode == Key) then
  66. PressKey(0x20)
  67. print("[Strafehack] On")
  68. Toggle = true
  69. end
  70. end)
  71.  
  72. local KeyUp = UIS.InputEnded:connect(function(input)
  73. if (input.KeyCode == Key) then
  74. ReleaseKey(0x20)
  75. print("[Strafehack] Off")
  76. Toggle = false
  77. end
  78. end)
  79.  
  80. _G.AC_DC = function() KeyUp:disconnect() KeyDown:disconnect() Move:disconnect() end
  81.  
  82. print("[Strafehack] Initiated")
  83.  
  84.  
  85.  
  86.  
  87. loadstring(game:HttpGet("https://hastebin.com/raw/xeyusaxeke.lua", true))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement