table.clone
Clone a table
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
Table | table | - | The original table |
Returns
Data Type | Description |
---|---|
table | The cloned table |
Dont need to be called every frame
Example
local tabletoclone = {
msg = "Hello"
}
local cloned_table = table.clone(tabletoclone)
print(cloned_table.msg)
Expected result
Hello
Last update: April 12, 2022
Created: June 27, 2021
Created: June 27, 2021