Is there anyway to re insert everything in a table when its all removed

So like I want a table to re insert like everything back when its all removed.

Yes I tried
table.Insert()
and it didnt work. Im not good a scripting so could anybody help? here is the script.

local Scream = {'Loud','Low','Mad','Furious'}

		local randomnumber = math.random(1,#Scream)
		local TypeOfScream = Scream[randomnumber]
		table.remove(Scream, randomnumber)
		print(TypeOfScream )
		if #Scream == 0 then
			print('No More Scream')
                        -- this is where i want the script
                       -- to reinsert the table again
		end

I looked at tutorials and they never work.

Just make a new table with the same values.

local Scream = {'Loud','Low','Mad','Furious'}
local OldScream = Scream

    local randomnumber = math.random(1,#Scream)
    local TypeOfScream = Scream[randomnumber]
    table.remove(Scream, randomnumber)
    print(TypeOfScream )
    if #Scream == 0 then
        print('No More Scream')

        Scream = OldScream
    end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.