So in my script, it runs quite a long script when it activates, but I wanted to add a
local item = math.random (1,300)
if item == 50 then
billboard = true
else
rest of script
but if it rolls 50, how do I make it run "rest of script" after the "else" without duplicating it all before the "else" ?
A quick little monkey patch to this is, throw your code into a function, then just have each statement call that function. Don't know if that was really what you were looking for, but hope that might've helped.
Unfortunately, there is no way to do what you have requested. You are going to have to re write the if statement OR don't add the else at all.
Here's an example:
local item = math.random (1,300) if item == 50 then billboard = true --rest of script -- so since u wanna run everything under the else just don't add an else or just copy paste the rest of script to here else --rest of script end
Good luck