Advertisement
Guest User

Untitled

a guest
Feb 12th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local CashValue = script.Parent.Parent.Parent.Parent.Values.CashValue
  2.  
  3. script.Parent.Touched:Connect(function(Hit)
  4.     if Hit.Name == "Part" and Hit:FindFirstChild("CashValue") then
  5.         CashValue.Value += Hit:FindFirstChild("CashValue").Value
  6.         Hit:Destroy()
  7.     end
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement