I don't know if I am connecting it to the Server to client, but this isn't working.

Its a localscript located in StarterPack : (everything runs fine until the :PlayerAdded event)


game.Workspace.FE_Mainbase.Whitelist:FireServer()
print"test"
wht = require(434549150)

game.Players.PlayerAdded:connect(function()
if wht then else wht = require(434549150) end
for l = 1, wht.Players do
if wht.Players == player.Name then
print "yes"
end
end
end)

7 comments

0

"player" line 8 needs to be defined. Also, PlayerAdded does NOT work in a local script, only server scripts. For player use; game.Players.LocalPlayer

0

Plus, the require(number) does NOT work on client either, the module will need to be parented under the localscript.

0

I forgot to mention that I did define player on player 8 just did't posted it. I put it into a local script and I am getting FireServer can only be called from client

1

Why the fricking hell are you doing a player added event in a local script ...................

0

because you can?

0

You shouldn't.