I’m jsut trying to actually get the Tags property. Mostly so I can use that tag to collect later on but I’m having trouble understanding how to even get the property: albeit setting the property.
I have a GoldCoin (1x1x1) part atm and it has a tag on it so I can use the collection service to manage it. Before I can even collect the parts( tagged coins) I need the tags to work properly. The coin/part is cloned and placed into a folder. It has the tag on it after it’s cloned. I can’t get the tagged script to work so I wanted to see if the tag actually exists. I am unable to work out how to print the name of the tag on the coin/part to show it exists.
--checking coins have a tag
local taggedCoins = game.Workspace.TaggedParts.TaggedCoins:GetChildren()
for _, coins in pairs(taggedCoins)do
if coins:IsA("Part")and coins.Name == "GoldCoin" and coins:HasTag("CoinsTag")then
print(coins.Name, " exists with a tag of undetermined name")--since Idk how to print the tag
else
warn("Somethings not right!")
end
end
I don’t know if the tags being cloned are even working. Any ideas?