So I am trying to create a number system for when you get to perform, and decided to use a table to do so but it is not removing the values I tell it to when I say table.remove(). Here is my script:
Adding Values:
game.Workspace.GlobalValues.AmountOfDancers.Value = game.Workspace.GlobalValues.AmountOfDancers.Value + 1
plr.DancerQue.Value = game.Workspace.GlobalValues.AmountOfDancers.Value
table.insert(DanceTable, plr.DancerQue.Value)
print(DanceTable[1])
Removing values:
plr.DancerQue.Value = nil
table.remove(DanceTable, plr.DancerQue.Value)
print(DanceTable[1])
I have tried multiple different ways but none of them seem to be working.
Thanks!