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?
That's not possible, but there are some ways to do the exact same
-- code -- last line of code game.ReplicatedStorage.BoolValue.Value = false