#Need help making a round system

1 messages · Page 1 of 1 (latest)

ashen gale
#

i want it to detect if theres 1 player in the server to display a text on a gui and update when anothr player joins to display 30 (time) and also when a player leaves back to text but when someone joins to be 3 players the timer resets

#

RoundScript:

#



local UI = game.Players.LocalPlayer.PlayerGui.UI
local Players = game.Workspace.Values.Players.Value
local RoundStarted = game.Workspace.Values.RoundStarted


game.ReplicatedStorage.Intermissions.OnClientEvent:Connect(function()
    print("new player")
    if Players == 1 then
        UI.Round.Text = "Intermission"
        UI.Timer.Text = "Not Enough Victims"
    end
    
    if Players > 2 and RoundStarted.Value == false and Players < 3 then
        UI.Round.Text = "Intermission"
        UI.Timer.Text = 30
    end
end)



while true do
    UI.Timer.Text -= 1
    wait(1)
end

#

player detection script: