Roblox studio, changes in the script editor saves

SO during the play test, I would use the script to set a variable to a certain amount for testing, but one day the suddenly script saved the changes even after the play test was over, so I have to manually remove the script every time I test, is this a feature I accidently enable, or a bug? Please help, I’m scared I might break my game