Ive looked thru the code myself and everything looked fine but the script isnt working
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)

7 comments
is this a local script and are you sure that CashValue can be found and is the part name Part?
it is not a localscript and the parts name is part
where is this script?
MainItems Folder
Hey there puppy, the script you recommended didnt work. Can you think of something else?
then are you spawning the block in a local script?
no