Hello! I wanted this system to award the player cash that has the gear equipped. How would I make this work on line 2? I don't know how to obtain the player thats holding the gear.
1 | script.Parent.Touched:Connect( function (Hit) |
2 | if Hit.Parent.Name = = 'Hamburger' then |
3 | Hit.Parent:Destroy() |
4 | script.Parent.Ding:Play() |
5 | script.Parent.Parent.PlatedBurger.Transparency = 0 |
6 | wait( 6 ) |
7 | script.Parent.Parent.PlatedBurger.Transparency = 1 |
8 | end |
9 | end ) |