local CashValue = script.Parent.Parent.Parent.Parent.Values.CashValue
script.Parent.Touched:Connect(function(Hit) if Hit.Name == "Part" and Hit:FindFirstChild("CashValue") then CashValue.Value += Hit:FindFirstChild("CashValue").Value Hit:Destroy() end end)

3 comments
What are you trying to do with the script? Please don't just provide the script, we need explanation on what you're trying to do as well.
im trying to make a tycoon and im trying to make the blocks disappear when they touch the sell zone at the end to give you money
https://pastebin.com/Nmu4LZQN