I am working on a script when you type in a number 1-18 in a button and you click a submit button, a gui will change color.
I typed in the script
script.Parent.MouseButton1Click:connect( function()
for i = 1,18,1 do wait()
if script.Parent.Parent.TableHandler.Text == i then
game.Players.LocalPlayer.PlayerGui.TableFinder.TableLots["Table"..i].BackgroundColor3 = Color3.fromRGB(255,0,0)
end
end
end)
and it ended up not working.
Could someone send me a script that would make this work?

1 comment
Added a code block, apologies.