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

How would I make this?

Asked by
Relatch 550 Moderation Voter
8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I'm sure of how to make most of this, just there is something throwing me off. I'm not sure how I would make sure if a player already got their rewards.

rewarded = false

game.Players.PlayerAdded:connect(function(plyr)
    local kos = plyr.leaderstats.KOs
    if kos then
        rewarded = true
        local rewards = {10, 15, 20}
        kos.Value = kos.Value + math.random(1, #rewards)
    elseif rewarded == false then
        print('already rewarded')
    end
end)
0
Make a boolean? (for if they got rewarded or not) NotSoNorm 777 — 8y
0
When do you want the player to get rewarded? If you tell me i think i can fix this. Marios2 360 — 8y
0
I want them rewarded every like 10 hours Relatch 550 — 8y

Answer this question