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

Rotate a part via. a certain position?

Asked by
hudzell 238 Moderation Voter
10 years ago

Alright, so I'm trying to make a cannon that you can aim up and down and stuff, but I haven't exactly figured out how it was going to go up and down without doing advanced cframe stuff. Can someone tell me how I can do this? (Basically what I mean is rotate the part instead of from the center, from a certain position)

1 answer

Log in to vote
1
Answered by 10 years ago

Weld all of the cannon parts to a main part. Then add a BodyGyro into that part, making sure it is unanchored, and set its cframe property to the CFrame location you want it to look at.

Ad

Answer this question