Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Another else problem. Mind if someone pastes in the correct script to make it work?

LOGIC: if order1 is not visible, then it will be visible. if it is then order2 will be visible and so on.

Here's the script

-- Variables --
local Page1 = game.StarterGui["Waiter/Waitress Board"].TextButton.Page1
local Order1 = Page1.Order1
local Order2 = Page1.Order2
local Order3 = Page1.Order3


-- Scripting --

	script.Parent.Background3.Submit.MouseButton1Click:Connect(function()
		Order1.Visible = true
else
	Order2.Visible = true
else
	Order3.Visible = true
	end)
	

Help?

1 answer

✓ Accepted answer

Try this out

if not Order1.Visible then--if order 1 is not visible, make it visible and move on
	Order1.Visible = true
elseif not Order2.Visible then--if order 1 is already visible then, if order 2 is not visible make it visible and move on
	Order2.Visible = true
elseif not Order3.Visible then
	Order3.Visible = true
end

"if not" is the same as saying...

if Order1.Visible == false then

This discussion is preserved as it was. New answers, comments, and votes are closed.