AdamTHM
(Obama)
April 6, 2021, 11:06pm
#1
I usually update code a lot, and it’s a pain updating every script by hand.
Let’s say I want to update code for a door but I have over 30 doors inside of Studio that needs to be updated.
I would rather instead have only one script in the doors that instead copy of another script in server storage or something.
How would I end up trying to do this?
AdamTHM:
Let’s say I want to update code for a door but I have over 30 doors inside of Studio that needs to be updated.
I would rather instead have only one script in the doors that instead copy of another script in server storage or something.
Usage of the CollectionService
will allow for this to be consolidated into a single place, so that changes made to the central place of code will apply for every single door under a specific tag.
More info can be found from the following Developer Forum thread:
[collectionservice_inanutshell]
Hello! This is a post about CollectionService, in a nutshell.
What’s CollectionService ? Well, CollectionService is a service which allows you to manage groups of instances using tags which are simple strings, but you can’t see them.
CollectionService is very useful since it allows us to run functions or change properties from large groups of parts with a single script. Instead of having 10 scripts that do the same, you only have 1. Learning how to use this se…
2 Likes
AdamTHM
(Obama)
April 6, 2021, 11:11pm
#3
This seems interesting, thanks for the information. I’ll mark it as solved for until I find another method I find better.
1 Like