Skip to content

Instantly share code, notes, and snippets.

@A1-exe
Created December 21, 2020 01:14
Show Gist options
  • Save A1-exe/9b16c8ef223d0701564cae1bdf4fc9d0 to your computer and use it in GitHub Desktop.
Save A1-exe/9b16c8ef223d0701564cae1bdf4fc9d0 to your computer and use it in GitHub Desktop.
sneaky speed hack... some games detect the jump hack
if not __hooks then
----- LOAD HOOK API -----
local Script = game:HttpGet('https://pastebin.com/raw/YJbQRmzT', true)
getgenv().__hooks = loadstring(Script)()
-------------------------------
end
local P = game:GetService('Players').LocalPlayer
__hooks.setwrite('Humanoid', 'WalkSpeed', false)
__hooks.setwrite('Humanoid', 'JumpPower', false)
local Char = P.Character or P.CharacterAdded:wait()
local H = Char:WaitForChild('Humanoid')
__hooks.set('Humanoid', 'WalkSpeed', __hooks.rawget(H, 'WalkSpeed'))
__hooks.set('Humanoid', 'JumpPower', __hooks.rawget(H, 'JumpPower'))
_G.WS = 23
_G.JP = 55
__hooks.rawset(H, 'WalkSpeed', _G.WS)
__hooks.rawset(H, 'JumpPower', _G.JP)
spawn(function()
while wait() do
if __hooks.rawget(H, 'WalkSpeed') ~= _G.WS then
__hooks.rawset(H, 'WalkSpeed', _G.WS)
end
if __hooks.rawget(H, 'JumpPower') ~= _G.JP then
__hooks.rawset(H, 'JumpPower', _G.JP)
end
end
end)
P.CharacterAdded:Connect(function(C)
local H = C:WaitForChild('Humanoid')
while wait() do
if __hooks.rawget(H, 'WalkSpeed') ~= _G.WS then
__hooks.rawset(H, 'WalkSpeed', _G.WS)
end
if __hooks.rawget(H, 'JumpPower') ~= _G.JP then
__hooks.rawset(H, 'JumpPower', _G.JP)
end
end
end)
local UserInputService = game:GetService("UserInputService")
local localPlayer = game.Players.LocalPlayer
local character
local humanoid
function onJumpRequest()
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
local function characterAdded(newCharacter)
character = newCharacter
humanoid = newCharacter:WaitForChild("Humanoid")
end
if localPlayer.Character then
characterAdded(localPlayer.Character)
end
localPlayer.CharacterAdded:connect(characterAdded)
UserInputService.JumpRequest:connect(onJumpRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment