Script that spins VFX

I’ve tried animating my vfx the regular way but that doesn’t seem to be possible.
I figured a spinning script would work since it’ll give it a cool affect.
sphere = script.Parent
sphere.Rotation = Vector3.new( 0, a, 0)
wait(.01) – we wait .01 seconds,
a = a+3 --a’s value increases
until pigs == 1
I tried making this script, but unfortunately it didn’t work.
Help is very much appreciated!

The issue is the code isn’t being looped so it will never re-check a and increment it, I suggest using TweenService rather than a while true do.