Hello, I think this is a really easy fix I just don’t know what the problem is because right now my code is
game.Players.PlayerAdded:Connect(function(player)
print(player)
end)```
I don't know why it's not working is it because My script is in the Starter Gui? Thanks!
What text??, you just showed code for the playeradded event, your gonna need remotes and fire all clients updating the respective text labels to the countdown number
local players = game:GetService("Players")
local count = script:WaitForChild("IntValue") -- make sure the script children is IntValue
players.PlayerAdded:Connect(function(player)
print(player.Name)
count .Value = count.Value + 1
end)
count.Changed:Connect(function(newValue) -- You can fire remote event here
print(count.Value, newValue)
if newValue >= (2) then
-- Fires remote event here
end
end)
players.PlayerRemoving:Connect(function(player)
print(player.Name)
count.Value = count.Value - 1
end)