04-18-2011, 02:14 PM
Try this:
[lua]
while true do
wait()
if script.Parent.Layer == 1 then
script.Parent.Layer = 2
elseif script.Parent.Layer == 2 then
script.Parent.Layer = 3
else
script.Parent.Layer = 1
end
end
[/lua]
[/lua]
[lua]
while true do
wait()
if script.Parent.Layer == 1 then
script.Parent.Layer = 2
elseif script.Parent.Layer == 2 then
script.Parent.Layer = 3
else
script.Parent.Layer = 1
end
end
[/lua]
![Wink Wink](http://2dworlds.buildism.net/forum/images/smilies/wink.png)