Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get x orientation value or a part?

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

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

Hope this helps!

2 comments

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?

0

X value of what?

This discussion is preserved as it was. New answers, comments, and votes are closed.