Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

is this script good so that the money goes directly in the leaderboard? [closed]

Asked by 7 years ago
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)
0
and if it is where do i need to put the script bramieboy241 -19 — 7y
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. httpOmqCxpcake 70 — 7y

Closed as Non-Descriptive by RubenKan

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?