#timer prob

1 messages · Page 1 of 1 (latest)

lost mantle
#
local player = game.Players.LocalPlayer
local char = player.Character
local textlabel = script.Parent


function onPlayerAdded(plr)
    if plr then
        local timer=10
        textlabel.Text = "game starts in:" .. timer
        while task.wait(1) do
            timer = timer-1
            textlabel.Text = "game starts in:" .. timer
            if timer == 0 then break end
        end
    end
end

players.PlayerAdded:Connect(onPlayerAdded)
textlabel.Changed:Connect(onPlayerAdded)```


The timer isnt going down.
steady cove
#

onplayeradded will only fire for other players, not the localplayer since they're already added.

#

this does nothing textlabel.Changed:Connect(onPlayerAdded)