I'm making a spotlight that goes up into the sky and moves, now I copied a video on how to rotate a door at a hinge but I changed it a bit, but for my sky spotlight I wanted it to rotate a bit, then rotate a bit backwards but I'm not sure how to do 2 events in one script. Any help is very appreciated. :)
local light = game.Workspace.light4.beam
local base = game.Workspace.light4.baseo
local basePos = base.Position
while true do
for i = 70,100 do
light.CFrame = CFrame.new(basePos) * CFrame.Angles(0,0,math.rad(i))
wait()
for x = 100, 70 do
light.CFrame = CFrame.new(basePos) * CFrame.Angles(0,0,math.rad(x))
end
end
the second "for i" command never works. im a newbie and I'm probably doing something thats common sense to you wrong

2 comments
You don't have a "do" at the end of for i - 100, 70 on line 09
ah. i recreated this because i removed the second line in the script, just a typo on my part it still didn't work with the "do"