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

BodyGyros changing Angles of a block

Is there a way to use BodyGyros or AngularVelocityto change the rotation of a block trying to face a Vector3 location. I know little of BodyObjects.

1 answer

This is actually a CFrame question, believe it or not!

To get a CFrame to face a Vector, there's a special way to do that:

CFrame.new(Vector3Point, Vector3Facing)

What that does is create a CFrame with a position of Vector3Point and it has the CFrame face Vector3Facing.

To apply this to a BodyGyro, just set the BodyGyro's cframe property to a CFrame you want it to face towards!

2 comments

0

How would I set it to the position of a block, I am having issues, like, it is disappearing issues.

0

Set the position of the CFrame to Vector3.new(0, 0, 0) and it should work.

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