I want to make a script that when the code inside it is fully executed it changes a bool value to false permanently. Is this possible if so how can I achieve this?
COMMUNITY QUESTION
Is it possible to permanently edit a script from within itself?
1 answer
That's not possible, but there are some ways to do the exact same
-- code
-- last line of code
game.ReplicatedStorage.BoolValue.Value = false
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
that is not what I am exactly asking for I am making a script and I want it to execute one time for the first player to join the game and then if a new server is made it does not execute because the the script has updated
You can't change code via scripts, you can only add code (from what I've seen with free model viruses.)