Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What if I were to kick a player client-sided?

Asked by
p0vd 207 Moderation Voter
4 years ago

Title says it all. I only want this information to prevent exploiters in my games.

1 answer

Log in to vote
2
Answered by 4 years ago

This question is best asked over at the Developer Forums, but I'll answer to the best of my ability.

Rule #1: Never trust the client.

You never know if the client has a malicious client or not. The client can delete anything that's replicated to them. This doesn't mean it deletes everything, it only means it only deletes things from their client, so if they break their own client, its their own fault. They absolutely cannot delete anything from the server, nor can they access it.

Try to avoid doing anti-exploits, kicking the player, etc from the client because any skilled exploiter can just delete the script from their client, but not anyone else's. Try to kick players on the server instead. You can use Remote Events (Recently Updated!!) to connect the server and the client more easily to achieve this. My point is, you can kick the player on the client if you would like, but it's not ideal. It's recommended to do so on the server.

If you have anymore questions, feel free to comment. If this helped, please accept this answer!

Ad

Answer this question