getgenv().on = true -- on or off
getgenv()._global_walkspeed = 50 -- custom walkspeed
local mt = getrawmetatable(game)
local oldIndex = mt.__index
local oldNewIndex = mt.__newindex
setreadonly(mt, false)
mt.__index = newcclosure(function(t, k)
if not checkcaller() and typeof(t) == "Instance" and t:IsA("Humanoid") and k == "WalkSpeed" then
return 16
end
return oldIndex(t, k)
end)
mt.__newindex = newcclosure(function(t, k, v)
if not checkcaller() and typeof(t) == "Instance" and t:IsA("Humanoid") and k == "WalkSpeed" then
return
end
return oldNewIndex(t, k, v)
end)
setreadonly(mt, true)
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
if getgenv().SpeedLoop then
getgenv().SpeedLoop:Disconnect()
end
getgenv().SpeedLoop = RunService.Heartbeat:Connect(function()
if getgenv().on then
local character = Players.LocalPlayer.Character
if character then
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.WalkSpeed = getgenv()._global_walkspeed
end
end
end
end)
print("Xsaf, a love it")
Comments
No comments yet
Be the first to share your thoughts!