Skip to content
Garrett Keneau edited this page Feb 13, 2024 · 1 revision

Data

Many types have a data table attatched to them. You can set values in this table, and they will persist until the item is removed.

    local item = items.create(itemTypes[enum.item.box], Vector(), orientations.n)
    local player = findOnePlayer('gart')

    item.data.owner = player

    print(item.data.owner.name) -- gart
    

Clone this wiki locally