So I have a stamina system and yea.. It relies on the "stamina's text" to actually know when to run or not run. I've been thinking that a player can alter the stamina GUI's text and make it have unlimited sprint.

How do I make it exploit proof?

Do I check on the server that it has enough stamina to sprint then allow them to sprint if so? Or is there any way on the client to make it fool-proof?

Thanks for viewing this!

3 comments

0

Don't rely on the gui's text to see what the player's stamina is. Players can edit their gui's text. What they can't edit are variables or object values.

0

Anything on the server the player can't change so remember to make all checks on the server.

0

Thank you!