I'm trying to make my game as exploit-free as I can, and I have a button that changes the player's health and walkspeed. It's a local script as it refers to the local player, and I was just wondering if it would be safe for me to change the health of the local player in a local script, and if an exploiter could somehow abuse this?
If your game has Filtering on, the changes to your player's health won't be replicated to the server if you do it with a LocalScript
. The only proper way to change a player's health with FilteringEnabled is with a server Script
.