Created
January 27, 2017 20:21
-
-
Save spotco/3fa8336fc943ddaf9e722b18dbd94085 to your computer and use it in GitHub Desktop.
DisableHumanoidPhysicsLocal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for _,child in pairs(game.Workspace.GameEnvironment.ReferencePlayers:GetChildren()) do | |
| local humanoid_child = child:FindFirstChild("Humanoid") | |
| if humanoid_child ~= nil then | |
| for _,enum in pairs(Enum.HumanoidStateType:GetEnumItems()) do | |
| if enum ~= Enum.HumanoidStateType.None then | |
| humanoid_child:SetStateEnabled(enum, false) | |
| end | |
| end | |
| end | |
| end | |
| print("SPTMP(StarterGui/DisableHumanoidPhysicsLocal) -- finished") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment