Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement