#Need help making a round system
1 messages · Page 1 of 1 (latest)
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: