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

how to make a get coins Brick Area's?

Asked by 3 years ago
Edited 3 years ago
local db = true
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") ~= nil then
        if db == true then
            db = false 
            script.Parent.Transparency = 1
            local player = game.Players:GetPlayerFromCharacter(hit.Parent)
            player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500
            script.Parent.Transparency = 1
            if (humanoid ~= nil) then
                humanoid.Health = 0
                db = true
                script.Parent.Transparency = 0.99
            end
        end
    end
end)

-- How to make a get coins, but if the player death, he can get coins again, but also if the player not die, he's can't get coins again?
0
what- The_Saver31 260 — 3y
0
pleasee help RizkySugihartoYT 36 — 3y

Answer this question