I’m sure this is really simple, but how do I clear out a table to start a new game? I’m storing player selections in a table
table = {}
table.character = "Bob"
table.money = 5000
table.turn = 12
So how to I clear all this out so when the game returns to the menu money and the turn count are reset?
table = nil
Setting the table to nil doesn’t work and I’ve tried using a for pairs loops to cycle through the keys and set them equal to nil
for k,v in pairs( table ) do k=nil end
Again, I’m sorry for such a simple question but this is really bugging me! [import]uid: 45104 topic_id: 13359 reply_id: 313359[/import]