I tried making a sanity bar, and it worked, but theres a huge flaw. There is no way to get sanity back. So obviously I tried to make a tool that gives you more sanity, like food or phone or whatever. But I couldn't get it to work and I have no idea where to start. I don't want this to sound like a request because I have already tried but I deleted the script. Any help is appreciated

1 comment

0

If you want your game to be exploit-free in this regard, then you'll have to store each Players' sanity state on the Server. Use a RemoteEvent to invoke a UI update each time it's adjusted. You can program the Tool with a Server-sided Script, which you can set up a BindableEvent to increment the sanity.