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

How do i fix table insert error, invalid argument #1 to 'insert' (table excpected, got nil)?

Asked by 3 years ago

I had this piece of code:

ppl = game.Players:GetChildren() list = {} table.insert(list, #ppl, game.Players.LocalPlayer.Name)

I was wondering if you could tell me what was wrong?

0
server script or local script? jerryisgod29 176 — 3y
0
Local Valkyrie1277 28 — 3y
0
The game.Players.LocalPlayer.Name doesn't work in server script Valkyrie1277 28 — 3y

Answer this question