Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can I disabled a script for only a player?

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?

1 comment

0

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.

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.