Well, the code looks the same so I can't tell from that fragment. Time to put on the trouble shooting hat and start printing values to the screen and see what is what.
BTW, "does not work" means "not very useful data".
How is it not working?
--
TAZ
If...
planetAngle# = wrapvalue(planetAngle# + (5.0*(elapsedTime/1000)))
...is failing, remove the wrapvalue function and try it...
planetAngle# = planetAngle# + (5.0*(elapsedTime/1000))
... or perhaps elapsedTime/1000 is going integer and returning a zero...
temp# = elapsedTime
planetAngle# = planetAngle# + (5.0*(temp#/1000.0))