Zap DANCER

YEAH! I finally finished this thing! Well, it took me a couple of hours 
So yeah, I just made a Zap Dancing bot
UPDATE: Works in 019
I want feedback

So yeah, I just made a Zap Dancing bot

UPDATE: Works in 019
- Code:
---------ZAPDANCER
---------by fordcars
function getName() -- Called once
return("Zapdancer")
end
function main() -- This is the first code ran, after loose code
botAng = 4.7 -- 4.7 is straight up (I think)
bot:setAngle(botAng)
rotright = true
end
function onTick()
if(rotright == true) then
botAng = botAng + 0.1 -- Rotate variable
bot:setAngle(botAng) -- Set bot at the right angle
local angofbot = bot:getAngle() -- Angle of the bot
if(angofbot >= 5.5) then
rotright = false
end
end
if(rotright == false) then
botAng = botAng - 0.1 -- Rotate variable
bot:setAngle(botAng) -- Set bot at the right angle
local angofbot = bot:getAngle() -- Angle of the bot
if(angofbot <= 4) then
rotright = true
end
end
end
I want feedback
