Okay so I’m trying to follow a tutorial on making a tycoon using Object oriented programming concepts. However, I have reached a roadblock because I’m stuck on not being able to figure this out
Before playing the game, I have a tag called “Test” and it is assigned to a certain part, but for some reason, using CollectionService:GetTags(), returns an array with nothing in it when actually playing the game.
if it helps at all im using a local file thats not published to roblox
I would appreciate any help at all with this topic
Are you inputting that particular Part to CollectionService:GetTags()? That method requires you to pass through an Instance to it and it’ll return an array that tells you which tags have been applied to that Instance.
If you’re wanting to get a list of all CollectionService tags that have been created, I’d recommend using CollectionService:GetAllTags(), instead.