Code I have so far:
1 | for i = 0.0001 , 10 * 100 e+ 999 do |
2 | game.Workspace.Rocket:MoveTo( 38 , 67.171 +i, - 168.25 ) |
3 | wait( 0.01 ) |
4 | end |
Trying to use the loop above would give me an error that goes like:
Unable to cast double Vector3
What am I doing wrong and how do I fix it?
You're supposed to input a Vector3
and not three seperate values.
1 | for i = 0.0001 , 10 * 100 e+ 999 do |
2 | game.Workspace.Rocket:MoveTo(Vector 3. new( 38 , 67.171 +i, - 168.25 )) |
3 | wait( 0.01 ) |
4 | end |