How do I make y if it is a certain number do what I say and not do what I say if it doesn't choose that number like for example if math.random 1 got chosen then it would do v.Value = v.Value * 1.1 * math.random(1, 1.5) but if it's any other number like 5 it wouldn't do that. Or is this not possible?
local balance = {-1, 1}
local v = game.Lighting:WaitForChild("ONE")
local sway = math.random(1, 100) * .01
local y = math.random(1, 6)
local x = math.random(1, 8)
while wait() do
wait(15)
v.Value = v.Value + sway
for y = 1,2 do v.Value = v.Value * 1.1 * math.random(1, 1.5)
for x = 2,3 do v.Value = v.Value - v.Value + 2.50
end
end
end

1 comment
so like if the math gets 2 it will do something but if it gets 1 or 3-6 it won't do that thing, idk if this helps maybe even confuses u more but idk how to explain it very well