this may sound dumb, but it sounds like you’re firing the client as soon as they join. try wait a while before you do, maybe like 2 seconds
i have done it myself (the code partially)
for i,v in pairs(game.Players:GetPlayers()) do
local UserId = v.UserId
print(UserId)
end
output:
it is not firing as soon as it joins as it is fired through a remote function. Maybe add the wait at the server script
weird [it printed for me]
is that a server script or a client script - local script
I already have pre-existing waits in the server script, up to 15 secs. Regardless, that issue is frequent. It’s seems like even the frame itself is not visible. @FerbZides that’s a local script.
can u try printing all the players userid on the server and see if it works
I have. Though it doesn’t print out my UserId. Am I non-existent or am I doing something wrong? I have no idea what’s going on, even on the server using a loop and even a playerAdded function, it still doesn’t print out my UserId.
I tried to replicate the thing in my own way… don’t know if this is what you want hypotesis's Place Number: 22 - Roblox
Hey, thanks for this. It’s not what I really wanted help with but it seems a like a useful resource. I don’t think I should take it though because I need to understand why this works over mine?
look inside the code of my project. then compare it to yours
it should as you did :FireAllClients()
Crap, what is it with that annoying bug that doesn’t save your work(I restarted Studio). I just realised that It was working because I used the local player, which was what it was previously before as. Lemme try again and see
Finally it’s working now. Thanks a lot for your help!