Changing the players state on the server

  1. What do you want to achieve? I want to be able to ragdoll a player, while not dead, and preferably using ChangeState as I think this results in the smoothest ragdoll (R15).

  2. What is the issue? Well, you can only use ChangeState on a local script. I’m hoping to find a workaround

  3. What solutions have you tried so far? I’ve tried searching other ways and all I’ve seen is making the network ownership nil, then auto-setting the network ownership. Though this does allow ChangeState to run on the server it’s extremely glitchy and not as I would like it to be.

The base of the ragdoll script is from:

All I’ve done is made it so that when the player’s health is under 26, they ragdoll, then get back up once their health is more than 26. I did this by simply changing the state of the humanoid to “Physics” and then disabling the animate script, vice versa for getting up. As I stated though, changing the state of the humanoid can only be done on the client, not the server.

Have you considering using FireAllClients to achieve the same result? You can’t really change state on the server without binding the ChangeState to a RenderStepped loop. Not sure how well that works either.

the only issue with this is security, this method would allow exploiters to remove the script which causes them to ragdoll, essentially never ragdolling.