I have a turret that works when it is unanchored and all of the parts are welded to the base (the BodyGyro is inside of the base). However, when I weld the base of the turret to a vehicle it does not move due to being welded. How can I attach the turret to the vehicle while still allowing the turret to move?
Code for moving the turret:
Beam.MoveBase = function(Start,End) local Base = Start.Parent.Base local Position = Base.CFrame.p + Vector3.new(0,0,0) local Direction = Position + ((End - Position) * Vector3.new(1,0,1)) Base.BodyGyro.CFrame = CFrame.new(Position, Direction) end