Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Failed to call field 'insert' (a nil value). How can I fix this?

Asked by 7 years ago
for i = 1,5 do
        but = Instance.new("TextButton",scr)
        but.Text = ""
        but.TextScaled = true
        but.Size = txt.Size
        but.Position = UDim2.new(1,0,1 - txt.Size.Y.Scale * (i + 1),0)
        but.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
        table.insert(allbuttons,but)
end

idk what this is?

0
Well, do you have a table called allbuttons? joshuatodd21 40 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

I named a variable "table" rip

Ad

Answer this question