The problem is, I dont know how to do it. this turret is not like other turret where the barrel itself can rotate freely. I want to make it so that the turret can only aim 180 degrees vertically and 360 degrees horizontally (by the base, which is the dark gray part). i cant find any sources regarding this type of turret.
Hopefully this is enough information for you to help me.
The simplest way of doing this, is to put a BodyGyro in the turret and connect the turret’s Parts using constraints, and using RunService, you make the turret face the Part.
just to make sure it the right part, which part do i put the bodygyro to?
(red marked part is the barrel, and blue marked part is the rotation part, which i use it to rotate the barrel. the dark gray part is where i yaw the entire part on top of it)
I wouldn’t call it “flawless”. Body movers generally aren’t very consistent in large and detailed games. In that game I could clearly see delay between movements and occasional lags.