Want to stay connected to the Scripting Helpers community and get real-time help? Join the Scripting Helpers Discord Server!
Ad
Log in to vote
0

Vector3 90 Degree Rotation?

Asked by 1 year 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 2914 — 1y
0
I do have one of those already added. BunnyFilms1 188 — 1y
0
Use SetPrimaryCFrame, then you can rotate the PrimaryPart FiredDusk 1443 — 1y

Answer this question