local coinable = false
script.Parent.Touched:connect(function() if not coinable then coinable = true
for _,Player in pairs(game.Players:GetPlayers()) do
Player:FindFirstChild("leaderstats")
Player.leaderstats.Coins.Value = Player.leaderstats.Coins.Value+25
wait(20)
coinable = false
end
end
end)
This is a script intended to give a player 25 points whenever they touch a brick, with a debounce/cooldown time of 20 seconds. In actuality, it gives the player 25 points when joining, and then allows them to touch the brick for points once every 20 seconds.
While your'e at it, if you don't mind explaining "for _,Player in pairs", I'm not familiar with these words and symbols
