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

How to get x orientation value or a part?

Asked by 6 years ago

Im trying to set my gun's bullets to the same x orientation value as the gun, so the bullets will just fly straight out instead of toward the mouse cursor. I can set the orientation manually to (0, 0, 0) or whatever, but I can't find anything that can get the orientation of an object. I feel like there should be a simple command like :GetOrientation that I'm missing, but I can't find anything about it. Help?

1 answer

Log in to vote
0
Answered by 6 years ago

Use the Orientation property. It contains a vector3, so you can use part.Orientation.X.

Hope this helps!

0
Thx for the answer, it worked. I can't believe I didn't realize Orientation.XYZ was a thing. However, is there a way to get the player's x value. Like a body gyro or something? tygerupercut3 68 — 6y
0
X value of what? hiimgoodpack 2009 — 6y
Ad

Answer this question