How to change multiple scripts from one place?

I have a gun script and in the gun tool I have some scripts, but the things is since there is multiple gun tools and multiple scripts in those and its a pain to go through and change each script one by one when making a change. Is there a way to just change them all at once? I am aware of module scripts but you cant fit an entire script in those, just functions so it isnt possible with those.

1 Like

For looping in one script with the connections needed is your best bet. It’ll make your script a lot more organized and easier to edit.

what do you mean by that? what kind of connections, i dont fully understand.

1 Like

I’m assuming you are trying to set up connections (Touched, MouseButton1Click, etc). You can for loop in one script through the objects in that one model and give the needed connections.

1 Like

no, I have a script in a tool and there is multiples of that tool with the same script. I want to change the script in that tool without having to change each individually.