Ad
Log in to vote
0

Vector3 90 Degree Rotation?

Asked by 3 months 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 2296 — 3mo
0
I do have one of those already added. BunnyFilms1 52 — 3mo
0
Use SetPrimaryCFrame, then you can rotate the PrimaryPart FiredDusk 1226 — 3mo

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

Answer this question



Ad