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

How can I check to see if a brick reaches a certain rotation?

Asked by
Zerio920 285 Moderation Voter
8 years ago

I have a brick with a bodygyro in it. The bodygyro has a different CFrame rotation from the brick's initial CFrame, so when the game first runs, it'll take a bit of time before the brick reaches the same rotation as the bodygyro, after which I'd like to anchor the brick. How can I check if the brick reaches the same rotation as the bodygyro?

0
You can probably use a Changed listener function to do that. StoIid 364 — 8y
0
What do I write to check if the rotations match? if brick.CFrame == BodyGyro.CFrame then anchor brick? Zerio920 285 — 8y

Answer this question