Advertisement
ZEE_TerminatorFX

Untitled

Jun 1st, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. -- // The Streets Anti-Exploit bypass (kind of) rewritten by John.
  2. -- // Synapse only.
  3. local metatable = getrawmetatable(game)
  4. setreadonly(metatable, false)
  5. local index, newindex, namecall = metatable.__index, metatable.__newindex, metatable.__namecall
  6. local walking_speed = 16
  7. local running_speed = 50
  8. local crouching_speed = 210 -- you can change these three to your liking
  9. local default_index_values = { -- what the script gives the anticheat when the anticheat asks for it (recommend you do not change)
  10. ["WalkSpeed"] = 16,
  11. ["JumpPower"] = 38,
  12. ["HipHeight"] = 0,
  13. ["Gravity"] = 196.1
  14. }
  15. metatable.__index = function(t,k)
  16. if k == "IlIl" then
  17. return
  18. end
  19. if default_index_values[k] ~= nil then
  20. if not checkcaller() then
  21. return default_index_values[k]
  22. end
  23. end
  24. return index(t,k)
  25. end
  26. metatable.__newindex = function(t,k,v)
  27. if k == "WalkSpeed" then
  28. if not checkcaller() then
  29. if game:service("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) and not game:service("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
  30. return newindex(t,k,running_speed)
  31. end
  32. if game:service("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then
  33. return newindex(t,k,crouching_speed)
  34. end
  35. return newindex(t,k,walking_speed)
  36. end
  37. end
  38. if k == "CFrame" then
  39. if t == game.Players.LocalPlayer.Character.HumanoidRootPart then
  40. if not checkcaller() then
  41. return
  42. end
  43. end
  44. end
  45. if k == "Gravity" or k == "Health" then
  46. if not checkcaller() then
  47. return
  48. end
  49. end
  50. return newindex(t,k,v)
  51. end
  52. metatable.__namecall = function(t, ...)
  53. local oof = {...}
  54. if oof[#oof] == "SetStateEnabled" or oof[#oof] == "BreakJoints" or oof[#oof] == "Kick" then
  55. if not checkcaller() then
  56. return
  57. end
  58. end
  59. if oof[#oof] == "Destroy" then
  60. if t:IsA("HopperBin") then
  61. if not checkcaller() then
  62. return
  63. end
  64. end
  65. end
  66. return namecall(t, ...)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement