Hi, this is my first time scripting tables so as expected it didn’t work. I’m making a table to store ‘player1’ and ‘player2’ so that I can call them after a player dies, because before I had problems that the player loses its character when it dies so i’m hoping this will solve the problem. Here is the part of my script where I made the table:
local function startEvent()
local plrs = {
}
table.insert(plrs, standingOnArena1Player1)
table.insert(plrs, standingOnArena1Player2)
local player1 = table.find(plrs, standingOnArena1Player1)
local player2 = table.find(plrs, standingOnArena1Player2)
What am I doing wrong? It seems like its not assigning the variables to the player as when I did player1.Character later in the script it said ‘attempt to index number with character’
I’d really appreciate any help!