runiu = {} function CreateUnit() runit = "hi" table.insert(runiu,runit) --~ Lets print out what runit is inside the function ~-- print("Inside the function, runit: " .. runit) end --~Let's try and access runit after the function is done~-- CreateUnit() print("After function, runit: " .. runit)