of     1   

GeneralPsyBeam
#139144403Thursday, July 03, 2014 9:29 PM GMT

here is my script: ran = math.random (1,2,3) if ran = 1 then game.Lighting.MAP1:Clone().Parent = game.Workspace wait (200) game.Workspace.MAP1:remove() elseif ran = 2 then game.Lighting.MAP2:Clone().Parent = game.Workspace wait (200) game.Workspace.MAP2:remove() elseif ran = 3 then game.Lighting.MAP3:Clone().Parent = game.Workspace wait (200) game.Workspace.MAP3:remove() whenever I run output says "line 2: then expected near '='" WHAT DO I DO
Quasiduck
#139144612Thursday, July 03, 2014 9:31 PM GMT

1. ran = math.random (1,3) --change your math.random to this one, (picks a number between 1 and 3) 2. for every if statement (and elseif), use two equal signs, e.g. if ran == 1
EchoingEndlessly
#139144770Thursday, July 03, 2014 9:32 PM GMT

Uhh.. Put all these "MAPS" in a model in the Lighting.. Or ServerStorage local Mapz = Game.Lighting.MAPS:GetChildren() while true do local Maz = Mapz[math.random(1,# Mapz)] Maz:Clone().Parent = Game.Workspace wait(9e9) Maz:Destroy() end

    of     1