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?
COMMUNITY QUESTION
how to make a get coins Brick Area's?
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
what-
pleasee help