For about 30 minutes I’ve been testing this code, and checking the output, but it seems to not output anything.
local Event = game.ReplicatedStorage:WaitForChild("Events")
local Maps = game.ReplicatedStorage:WaitForChild("Maps")
local Bindables = game.ReplicatedStorage:WaitForChild("BindableEvents")
local Players = game.Players:GetPlayers()
while true do
wait()
x = 0
for i,v in pairs(Players) do
print("Looping...")
x = x + 1
v.CharacterAdded:wait()
end
if x >= 3 then
print("Three players!")
Bindables:WaitForChild("StartGame"):Fire()
end
end
Does anyone see any errors?