Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I fix this script?

AddedAdministration = {"Myself",100}
game.Players.PlayerAdded:connect(function(player) -- near end
table.insert(Table, 1,(player))
end
end -- error

')' expected (to close '(' at line 2) near 'end'

It is supposed to insert a player that entered name's into the table.

1 answer

The last end, should be :

end)

Also, if you wish to use table.insert to add to AddedAdministration, then do :

table.insert(AddedAdministration, player.Name);

You do this because if you don't specify pos, it defaults to #table+1. Also, just input player.Name.

This discussion is preserved as it was. New answers, comments, and votes are closed.