Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- what you can do once you run this script:
- -- change your hipheight and walkspeed
- -- set gravity
- -- tp anywhere
- -- change humanoid state
- -- run bork gui if you like that or something
- -- insert tools into your backpack (normally not allowed)
- -- still move around during events when you normally slow down or stop (e.g getting hit, finishing someone, or reloading)
- -- basically anything that normally kicks you (doesnt fix god mode tho Sad)
- -- NEW: have infinite stamina automatically
- -- enjoy lul
- -- Script:
- local sprinting_speed = 25
- local walking_speed = 16
- local crouching_speed = 8
- local stam = game.Players.LocalPlayer.Backpack.ServerTraits.Stam
- local replicated_storage = game:service("ReplicatedStorage")
- setreadonly(getrawmetatable(game), false)
- local backup = getrawmetatable(game).__index
- local nbackup = getrawmetatable(game).__newindex
- local cbackup = getrawmetatable(game).__namecall
- getrawmetatable(game).__index = function(t,k)
- if t == replicated_storage then
- if k ~= "VoteKick" and k ~= "SaveData" and k ~= "SaveServer" then
- return -- changing the remote you use is kind of tiring so i just did this.
- end
- end
- if t == stam then
- return 100
- end
- if k == "WalkSpeed" then
- if not checkcaller() then
- return 16
- end
- end
- if k == "HipHeight" then
- if not checkcaller() then
- return 0
- end
- end
- if k == "JumpPower" then
- if not checkcaller() then
- return 38
- end
- end
- if k == "Gravity" then
- if not checkcaller() then
- return 196.1 -- p.s setting the gravity back won't actually do anything. this makes this part of the code redundant but whatever
- end
- end
- return backup(t,k)
- end
- getrawmetatable(game).__newindex = function(t,k,v)
- if k == "CFrame" then
- if t == game.Players.LocalPlayer.Character.HumanoidRootPart then
- if not checkcaller() then
- return
- end
- end
- end
- if k == "Gravity" or k == "Health" then
- if not checkcaller() then
- return
- end
- end
- if k == "WalkSpeed" then
- if not checkcaller() then
- if game:service("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) and not game:service("UserInputService"):IsKeyDown(Enum.KeyCode.S) then
- return nbackup(t,k,sprinting_speed)
- end
- if game:service("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then
- return nbackup(t,k,crouching_speed)
- end
- return nbackup(t,k,walking_speed)
- end
- end
- return nbackup(t,k,v)
- end
- getrawmetatable(game).__namecall = function(t, ...)
- local oof = {...}
- if oof[#oof] == "SetStateEnabled" or oof[#oof] == "BreakJoints" then
- if not checkcaller() then
- return
- end
- end
- if oof[#oof] == "Destroy" then
- if t:IsA("HopperBin") then
- if not checkcaller() then
- return
- end
- end
- end
- return cbackup(t, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement