Nil = Destroy in dictionaries?

Hey, here an example:

local table = {User = “string”}

task.wait(1)
table.User = nil

when i do print(table) it says its empty, does that mean it destroys the User?
when i do print table.User its nil, but that also happens if theres nothing in the table.
i dont know if roblox just deletes the value in the dictionary then?.. can anyone tell me if it does, if yes its kinda useful to use for me.

1 Like
2 Likes

In Dictionaries, setting a key’s value to nil will automatically remove the key within it.

3 Likes