Table problem script?

How would I do this:

local table = {}

table.insert(tableL,"Bruh" = 50,)

how can I make the string have a value atached.

3 Likes

Two ways:

  1. Key-value pairs
local tableL = {}
tableL["Bruh"] = 50
  1. Direct Initialization
local tableL = {["Bruh"] = 50}

it will insert it so add it to the table instead of removing everything and only changing it to bruh. right

1 Like

Then option 1 should be the way to go.

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