First, I typed in a local script into a text button.
Here's the script:
LocalPlayer = game.Players.LocalPlayer
tableLots = script.Parent.Parent.Parent.TableLots
script.Parent.MouseButton1Click:connect(function()
local text = script.Parent.Parent.TableHandler.Text
local number = tonumber(text)
print("Number ", number)
if number >= 1 and number <= 18 then
local chosenTable = tableLots["Table"..tostring(number)]
print("Table ", chosenTable)
chosenTable.BackgroundColor3 = Color3.fromRGB(255,0,0)
elseif
chosenTable.BackgroundColor3 == Color3.fromRGB(255,0,0) then
script.Parent.Text = "Table already taken."
wait(5)
script.Parent.Text = "Please try again."
wait(5)
script.Parent.Text = "Submit"
end
end
As I type in elseif and the continued script, nothing works.
It would be wonderful if someone explained the elseif part.

4 comments
Else if is written as "elseif" not "else if"
I tried that, didn't work, just a typo in the code block.
nigger
fuck you NIGGER