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

Smooth Turning of Bricks?

Asked by 10 years ago

Hello,

I have a really simple question that has been bothering me for quite a while, and I'm at a point where I need to know it.

How would I rotate a given brick smoothly from a script?

In my context, I need to rotate a given player towards another given player.

Thanks for reading; all replies are appreciated!

1 answer

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
10 years ago
Part.CFrame  =  CFrame.new(0, 0, 0) * CFrame.Angles(0, math.pi/2, 0) -- This will turn it 90 Degrees

But i'm guessing you can figure out and adjust your rotation of your brick, also here's a source you can use. CFrame

Ad

Answer this question