I think you having a simple mistake
instead of using :
game.Players.PlayerAdded:Connect(function(Player)
u need to use this:
local Players = game:GetService(“Players”)
Players.PlayerAdded:Connect(function(Player)
FireAllClients doesn’t need the player argument as it fires the remote event to every client that is listening to it. Just put in your other arguments:
This is wrong. You can use game.Players.PlayerAdded or game:GetService(“Players”).PlayerAdded as they both work. (unless you changed the name of the “Players” service)
Sometimes the player already exists before this event gets the chance to fire. You should loop through all players, and trigger the same function that you have connected to the PlayerAdded event.
local Players = game:GetService("Players")
local function onPlayerAdded(player)
print(player.Name)
end
Players.PlayerAdded:Connect(onPlayerAdded)
for _,player in ipairs(Players:GetPlayers()) do
onPlayerAdded(player)
end