Problem With Tables

I want to make a tycoon for me and my friends to play on, but I ran into a problem with the collector for the dropped parts from the droppers. I have multiple types of things that are being dropped with different names and so I just thought to put them all into a table to make it easier. However, whenever the dropped items are on the collector, they do not run the function (the table is not working). The following image is the script:


The Image of The Script (Hit.Parent is there because the object that is supposed to be collected is a grouped model.)

2 Likes

Use table.find instead of == tablename

if table.find(Collectables, Hit.Parent.Name) and Hit.Parent:FindFirstChild("CashValue") then
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.