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
bg9
(bg9)
July 28, 2024, 6:09pm
2
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
bg9
(bg9)
July 28, 2024, 6:45pm
4
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