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)
COMMUNITY QUESTION
is this script good so that the money goes directly in the leaderboard?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
and if it is where do i need to put the script
Please read basic scripting first. If the "bank" it touched, and the part is named Cash, it gives money... This this a bad question.