I am working on a tycoon from scratch. This is the script for the collector part at the end of the conveyor belt.
Script: by metryy who suggested it below
Part = script.Parent
Value = script.Parent.Value
Part.OnTouched:Connect(function(hit)
if hit.Name == "Cash" then
hit:Destroy()
Value = Value + 1
end
end)
In the output, it comes up with:
OnTouched is not a valid member of Part
I need a fix to this script. Thanks

4 comments
Sorry scriptinghelpers is not a request site, https://scriptinghelpers.org/help/community-guidelines. Please narrow the question to a single problem or post your own attempt.
You could make your life easier by grabbing a free tycoon kit from the toolbox and editing it from there, but if you insist on doing one from scratch, you may also want to learn Lua from scratch, https://developer.roblox.com/learn-roblox/coding-scripts. Good luck!
If you're new, I'd definitely recommend and advise that you use a Tycoon Kit, preferably Zed's Tycoon Kit, but you'd probably need at least 1+ years of experience to make a Tycoon from scratch.
This is not a request site.