Advertisement
nguyenminhnghia

bypass

Feb 4th, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. local sprinting_speed = 25
  2.  
  3. local walking_speed = 16
  4.  
  5. local crouching_speed = 8
  6.  
  7. setreadonly(getrawmetatable(game), false)
  8.  
  9. local backup = getrawmetatable(game).__index
  10.  
  11. local nbackup = getrawmetatable(game).__newindex
  12.  
  13. local cbackup = getrawmetatable(game).__namecall
  14.  
  15. getrawmetatable(game).__index = function(t,k)
  16.  
  17. if k == "HeIIo" then
  18.  
  19. return
  20.  
  21. end
  22.  
  23. if k == "WalkSpeed" then
  24.  
  25. if not checkcaller() then
  26.  
  27. return 16
  28.  
  29. end
  30.  
  31. end
  32.  
  33. if k == "HipHeight" then
  34.  
  35. if not checkcaller() then
  36.  
  37. return 0
  38.  
  39. end
  40.  
  41. end
  42.  
  43. if k == "JumpPower" then
  44.  
  45. if not checkcaller() then
  46.  
  47. return 38
  48.  
  49. end
  50.  
  51. end
  52.  
  53. if k == "Gravity" then
  54.  
  55. if not checkcaller() then
  56.  
  57. return 196.2
  58.  
  59. end
  60.  
  61. end
  62.  
  63. return backup(t,k)
  64.  
  65. end
  66.  
  67. getrawmetatable(game).__newindex = function(t,k,v)
  68.  
  69. if k == "CFrame" then
  70.  
  71. if t == game.Players.LocalPlayer.Character.HumanoidRootPart then
  72.  
  73. if not checkcaller() then
  74.  
  75. return
  76.  
  77. end
  78.  
  79. end
  80.  
  81. end
  82.  
  83. if k == "Gravity" or k == "Health" then
  84.  
  85. if not checkcaller() then
  86.  
  87. return
  88.  
  89. end
  90.  
  91. end
  92.  
  93. if k == "WalkSpeed" then
  94.  
  95. if not checkcaller() then
  96.  
  97. if gameConfusedervice("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) and not gameConfusedervice("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
  98.  
  99. return nbackup(t,k,sprinting_speed)
  100.  
  101. end
  102.  
  103. if gameConfusedervice("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then
  104.  
  105. return nbackup(t,k,crouching_speed)
  106.  
  107. end
  108.  
  109. return nbackup(t,k,walking_speed)
  110.  
  111. end
  112.  
  113. end
  114.  
  115. return nbackup(t,k,v)
  116.  
  117. end
  118.  
  119. getrawmetatable(game).__namecall = function(t, ...)
  120.  
  121. local oof = {...}
  122.  
  123. if oof[#oof] == "SetStateEnabled" or oof[#oof] == "BreakJoints" then
  124.  
  125. if not checkcaller() then
  126.  
  127. return
  128.  
  129. end
  130.  
  131. end
  132.  
  133. if oof[#oof] == "Destroy" then
  134.  
  135. if t:IsA("HopperBin") then
  136.  
  137. if not checkcaller() then
  138.  
  139. return
  140.  
  141. end
  142.  
  143. end
  144.  
  145. end
  146.  
  147. return cbackup(t, ...)
  148. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement