From server:
game.Players.PlayerAdded:connect(function(player)
remotes.addLabel:FireAllClients(player)
end)
From local script:
function addLabel(player)
print(player.Name)
end
Error:
Player1
17:02:07.346 - Players.Player1.PlayerGui.listScript:20: attempt to index local 'player' (a nil value)
Why is this not working? If I pass in the Player's name from the server, it'll work though. But why can't I pass in the player object and have it working? I tested this in STUDIO's server testing tool.
What's going on?

2 comments
I think you got it backwards or something. The local script part should be a server script, and the server script looks like it should be in the local script. I dont know if this is the problem though
He's firing a client side function from the server