What do I to change the shape, color, and size?(Just to be sure) (The main question-->) Why do I get an error on line 5?
script.Parent.Touched:connect(function(Part) if Part.Name=="PARTNAME" then Part:remove() script.Parent:remove() PRODUCTNAME=Instance.new("Part", game.Workspace) --Adjust shape/color/size of product item here. end end)
What's happening isn't an error. It underlines that in blue because it's suggesting that you change it to a local variable. Just put "local" and a space before it if you want it to go away. like this:
local PRODUCTNAME=Instance.new("Part", game.Workspace)
For more about variables/local variables check out this page.
Hope I helped :P