local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local R_P = 10
 
local reqPlrsEvent = ReplicatedStorage:WaitForChild("reqPlrsEvent")

local function onReqPlrsEventFired()
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = "[GAME]: " .. R_P-game.Players.NumPlayers .. " players needed to begin the game!";
		Color = Color3.new(1, 0, 0);
})
end

reqPlrsEvent.OnClientEvent:Connect(onReqPlrsEventFired())

I go to test on a server with two players, but the messages do not stack for the 1st player.

It should go "9 players needed" and then "8 players needed" for the 1st player, since he was the first in the server, but it only shows "9 players needed".

Help?

1 comment

0

Well since R_P is set to 10, when the first playter joins, there only needs to be 9 more players. 10-1 = 9. I'm not sure if that's the problem or not, but it appears to be.