1992x

bad ws/jp bypass

Dec 29th, 2020 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. _G.objs = {}
  2. getgenv().spoof = function(obj, property, value)
  3. local s = pcall(function()
  4. local lol = obj[property]
  5. end)
  6. if s then
  7. table.insert(_G.objs, {obj, property, value})
  8. end
  9. end
  10. getgenv().findwithintable = function(o, p)
  11. for i, v in pairs(_G.objs) do
  12. if table.find(v, o) and table.find(v, p) then
  13. return v
  14. end
  15. end
  16. return nil
  17. end
  18. getgenv().unspoof = function(obj, property)
  19. local lol = findwithintable(obj, property)
  20. if lol then
  21. table.remove(_G.objs, table.find(_G.objs, lol))
  22. end
  23. end
  24. local mt = getrawmetatable(game)
  25. setreadonly(mt, false)
  26. old = mt.__index
  27. mt.__index = newcclosure(function(o, p)
  28. local t = findwithintable(o, p)
  29. if t ~= nil then
  30. return t[3]
  31. end
  32. return old(o, p)
  33. end)
  34. local ws = 150
  35. local jp = 150
  36. local hum = game.Players.LocalPlayer.Character.Humanoid
  37. spoof(game.Players.LocalPlayer.Character.Humanoid, "WalkSpeed", game.Players.LocalPlayer.Character.Humanoid.WalkSpeed)
  38. spoof(game.Players.LocalPlayer.Character.Humanoid, "JumpPower", game.Players.LocalPlayer.Character.Humanoid.JumpPower)
  39. print(game.Players.LocalPlayer.Character.Humanoid.WalkSpeed)
  40. print(game.Players.LocalPlayer.Character.Humanoid.JumpPower)
  41. hum.Changed:Connect(function()
  42. hum.WalkSpeed = ws
  43. hum.JumpPower = jp
  44. end)
Add Comment
Please, Sign In to add comment