Is there anyway i can perminentley edit a script? (READ DESC)

Sorry for the bad explanation, but lemme try to explain in-depth:

Lets say i have this script:

local Value = 1
local Call = game.replicatedstorage.ChangeValue

Lets say i call that event and it changes the value to the number 2
Is there a way to do this in such a way that the script in the editor now says 2?

So i start the game, change the value, then stop the game and go back into the script and its changed still

2 Likes

what’s your use case here? why would you wanna change a script’s source from a running server?

i just wanted to know f it was possible

no it’s not possible, but depending on your use case you can use data stores

This would be possible with a plugin by editing the script.Source but in game it is not possible

No, but if you add a number value like this

local Value = script.NumberValue.Value

and make the game.replicatedstorage.ChangeValue event change the number value to 2 when fired along with data stores, it’ll save but only when you join the game, not in studio. Otherwise you can use plugins