Touched is not a valid member of model

So im currently trying to make a tycoon game but the buttons to buy items aren’t working and the output bar says “Touched is not a valid member of Model “Workspace.Tycoons.Tycoon.Buttons.FriesBuyButton””.

This is my current code for it:

Thank you for your time!

P.S. Im new at scripting

Somewhere within the tagged instances there is a Model instead of a BasePart. You should check what is tagged with that (print it out) and see what is tagged incorrectly. If the game tags the instances within the code, you should consider checking that.

If you find a Model, you should just… change it to the part it holds you’d like to get it to trigger upon touching which.

Ok thank you, ill try to do that

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