Skip to content

Instantly share code, notes, and snippets.

@spotco
Created January 27, 2017 20:21
Show Gist options
  • Select an option

  • Save spotco/3fa8336fc943ddaf9e722b18dbd94085 to your computer and use it in GitHub Desktop.

Select an option

Save spotco/3fa8336fc943ddaf9e722b18dbd94085 to your computer and use it in GitHub Desktop.
DisableHumanoidPhysicsLocal
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