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

Is it safe to change health of localplayer in local scripts from exploiters?

Asked by
trecept 367 Moderation Voter
6 years ago

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?

1 answer

Log in to vote
1
Answered by 6 years ago

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.

0
Oh I see, thanks for letting me know! trecept 367 — 6y
Ad

Answer this question