I would like to change a player’s humanoid state type from the server.
I would like to do this so I can make a ragdoll actually function correctly.
Yes, I’ve searched and seen that there are a couple of methods.
I’m asking anyway because I have the following concerns about these methods.
change the network owner briefly and then change the state type, then revert the network owner back to the player
- I am not sure if this has any potential risks of breaking scripts or messing anything up. so I’m hesitant.
have an event that tells the client to change the state type
- this would be the go-to option, but I need to change the state type so I can trigger a ragdoll for a given amount of time. An exploiter could easily have it ignore the event and prevent ragdoll.
if someone could clarify which one of these i should do, or even tell me an idea of their own, id be most grateful.
If your concern are only exploiters then:
Exploiters have access to the following:
- Module Scripts (Can make a change)
- Localscripts (They can disable them, copy them, and make clones of them.)
- RemoteEvents (Can’t make a change, but can trigger with any value)
- RemoteFunctions (Can’t make a change, but can trigger with any value)
Thus as long as your opition does not include any of these, exploiters can’t toggle it off.
Thus I would recommmend the
opition.
Also, why would you need to revert the network owner back to the player?
1 Like
If you’re using a boolvalue (or anything similar inside the player character) for your ragdoll function on the character you can easily prevent deletion of it with a server-sided script.
1 Like
thank you for this information.
also, im not sure why id need to change the network owner back. i just figured that since the original network owner was the client, changing it to the server for too long could possibly mess something up. its whatever though, thank you!
yea that is true, but the ragdoll script is modular based and triggers when the humanoid state goes to a certain one, like physics.