Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this Remote Event sending a nil Player variable?

Asked by
drew1017 330 Moderation Voter
9 years ago
game.Players.PlayerAdded:connect(function(player)
    --stuff
    workspace.Comm.CreateMenu:FireClient(player)
end)

workspace.Comm.CreateMenu.OnClientEvent:connect(function(player)
    --stuff
    local meta = player.Meta
end)

As you can see, i'm sending the Player variable consistently through these remote events, yet on line 8, it says that the Player variable is nil. halp

0
Is all of that code all in one Script/LocalScript? You must have line 1-4 inside of a Script and line 6-9 inside of a LocalScript. alphawolvess 1784 — 9y
0
They are in seperate scripts and localscripts, respectively. drew1017 330 — 9y

Answer this question