I'm making a game where it's like adopt and raise a cute kid and I made a couple of houses but how do I disable the other scripts of the houses if a player already bought a house?
COMMUNITY QUESTION
Can I disabled a script for only a player?
1 answer
You can put a localscript into StarterPlayerScripts, where you can disable those other homes for a person who already bought one using a remote event. Localscripts only affect one client, not anybody else (unless you're using a remote event that fires all the clients). Just make sure to put the localscript into StarterPlayerScripts, as it is a common mistake for somebody to put it into workspace or ServerScriptService. That won't work.
3 comments
0
Can you give an example?
0
What do you mean by an example?
0
They are asking for you to write the script lol
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I don't actually recommend disabling scripts as it is considered unreliable. Instead, use something like a debounce so that it only triggers when you want it to trigger.