Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Vector3 90 Degree Rotation?

Asked by 7 years ago

So here I have a script that moves a model (0,0,-5) studs forward, then it stops. I am wanting to know how to add a 90 degree right and left rotation that rotates the whole model. How would I do that?

s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
wait(0)
Car.BodyVelocity.velocity = Vector3.new(0, 0, -5)
wait(6)
Car.BodyVelocity.velocity = Vector3.new(0,0,0)
0
Add a bodyGyro RubenKan 3615 — 7y
0
I do have one of those already added. BunnyFilms1 297 — 7y
0
Use SetPrimaryCFrame, then you can rotate the PrimaryPart FiredDusk 1466 — 7y

Answer this question