local button = script.Parent local player = game.Players.LocalPlayer local ragdolled = false button.Text = "Ragdoll" button.Activated:Connect(function() local character = player.Character if not character then return end local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid then return end ragdolled = not ragdolled if ragdolled then humanoid:ChangeState(Enum.HumanoidStateType.Physics) humanoid:SetStateEnabled( Enum.HumanoidStateType.GettingUp, false ) button.Text = "Unragdoll" else humanoid:SetStateEnabled( Enum.HumanoidStateType.GettingUp, true ) humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) button.Text = "Ragdoll" end end)