How to make Turret Face at A point

I have been trying to do this for a few days now but I still don’t really get how to manipulate the CFrames. The point that I want to do is make the barrel face the target block but the pivot is inside a different part, how would I go around doing this. Also if you show me how to do it, please explain since I want to understand the code.Turrent.rbxl (20.4 KB)

1 Like

You want to set the CFame of your turret to be something like

CFrame.new(turret.Position, playerLocation)

Edit: I see you said block, just get the block location instead

this works normally, but I am trying to manipulate a motor 6d not the part itself

1 Like