local ord = script.Parent.Parent.Order.Value
local reg = game.Workspace.Register1
local pepp = reg.Pepperoni.Hit.Value
local chee = reg.Cheese.Hit.Value
local saus = reg.Sausage.Hit.Value
local moun = reg.MountainDew.Hit.Value
local g = game.Lighting.Storage.g
print (ord)
if ord == 1 then repeat wait() until
pepp == 1
if pepp == 1 then g = reg.Pepperoni.Pepperoni
elseif pepp ~= 1 then return end
if ord == 2 then repeat wait() until
chee == 1
if chee == 1 then g = reg.Cheese.Cheese
elseif chee ~= 1 then return end
if ord == 3 then repeat wait() until
saus == 1
if saus == 1 then g = reg.Sausage.Sausage
elseif saus ~= 1 then return end
if ord == 4 then repeat wait() until
moun == 1
if moun == 1 then g = reg.Pepperoni.Pepperoni
elseif moun ~= 1 then return end
If anyone could help, that would be great. Thank you.
Its stressing me out because ive tried so many different things and everything I have tried so far hasn't worked.
To try help you understand:
If the order = 1, wait until Pepperoni button is hit
IF the button IS clicked, g = Pepperoni
if the button isnt clicked, continue waiting?
else-if the order = 2, then (the same as above)

3 comments
Any errors in output?
No. Somehow. It either skips it or doesn't run it due to some error, but no error appears..
Did you want the e.g. 19 and 20th lines to be inside the loop in the 17th, so they run until the pepp is 1?