I'm using a module script as a table to access from anywhere, and this script adds a player into the module:
local participants = require(game.Workspace.Race.Participants)
game.ReplicatedStorage.Race.Race.OnServerEvent:Connect(function(player)
table.insert(participants,#participants+1,player)
print("ok "..#participants)
end)
And it prints "ok 1". Now for the local script:
local participants = require(game.Workspace.Race.Participants)
local CountDown = 10
print("ok")
while wait(1) do
print("running")
print(#participants)
if #participants == 1 then
print("Active")
script.Parent.Text = CountDown
CountDown = CountDown - 1
end
end
It will print "ok" and "running", but after I insert the player into the table, the line "print(#participants)" will print 0, even tough it should print 1.

4 comments
Why don`t you use IntValues? Modules don't work like that, they only make the variable 'global' if it is set inside the module
I need the modules to store the participant's of the race, how will I store them in int's lol
Create Int/String/Object Values or any other, and then use a for loop to get the players
Ok I will try it