local Bank = script.Parent
local PartName = "Cash"
local Collector = game.Worspace.Collector
local MoneyAmount = 5

Bank.Touched:connect(function(hit)
	if hit.ClassName == "Part" and hit.Name == PartName then
		hit:Destroy()
		Collector.Money.Value = Collector.Money.Value + MoneyAmount
	end
end)

2 comments

0

and if it is where do i need to put the script

0

Please read basic scripting first. If the "bank" it touched, and the part is named Cash, it gives money... This this a bad question.