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

Can a LocalScript disable itself?

Considering my game is Filtering Enabled (experimental mode off), is it possible for a LocalScript to toggle its Disabled property directly, without the use of remote events/functions?

For example:

script.Disabled = true

Be it that be the code inside a LocalScript, will it replicate to the server?

2 answers

✓ Accepted answer

When a local script runs, its contents aren't being "replicated to the server", they're simply being run on the client. Also, yes, a script can disable itself

something.Event:Connect(function()
	script.Disabled = true
end)

I have tried that before and in my experience, you can't.

You have to do it manually.

( Once again this is from my knowledge so I don't think so. )

Hopefully this answers your question.

This discussion is preserved as it was. New answers, comments, and votes are closed.