Make part rotate around its edge

yeah but whatwould i pivot it to?

1 Like

The lookAt CFrame from the turret to the enemy.

1 Like

ok i will try it now. Thanks!!!

1 Like

I’m not sure, it just wasn’t facing the right direction

1 Like

I tried this and it caused the model to float up a lot

1 Like

My mistake, it was supposed to be from the Base.

so what code would I use for this?

CFrame.lookAt(base.Position, and then you put the enemy

ok i will try this now. Thanks!

this made the barrel go down to the base, but I want it to still be on the pole.

Did you edit the pivot offset for the model?

yeah I had already done that ages ago

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.