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 8 years ago
1for i = 1,5 do
2        but = Instance.new("TextButton",scr)
3        but.Text = ""
4        but.TextScaled = true
5        but.Size = txt.Size
6        but.Position = UDim2.new(1,0,1 - txt.Size.Y.Scale * (i + 1),0)
7        but.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
8        table.insert(allbuttons,but)
9end

idk what this is?

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

1 answer

Log in to vote
0
Answered by 8 years ago

I named a variable "table" rip

Ad

Answer this question