How do you edit a script while being in a server using gui buttons?

Like phantom forces, you can choose enable blood or not. But how does it work? I don’t think you can edit it, but the blood is invisible until you click the button. But can you edit a the inside of a script using buttons?

By inside I mean like the script. Like changing “local” to some other phrase of code.

My hands hurt from typing this

1 Like

When it comes to those dynamic options, they’re probably using things such as BoolValue objects stored somewhere on the server. Once the player clicks a GUI, it sets that BoolValue to either true or false (of course done through the server so it replicates) and i’m assuming they check for that value first before showing any blood. Depending on its value, it will be shown or hidden

3 Likes

Good idea- I did not think of it. At least that way.

1 Like

Those values are so flippin useful. StringValue is something I use to show players the round/intermission countdown on their end. IntValues for stats like cash and all that. You should defo get around to using them if you aren’t already

2 Likes