local gun1pos = (ship.GunPost1.CFrame * CFrame.new(0, 2, 0)).p
ship.GunPost1.Weld.C1 = ((CFrame.new(gun1pos, mouse.Hit.p) - gun1pos):inverse()) * (ship.GunPost1.CFrame - ship.GunPost1.Position)
That's what I used to make the welds on one of my plane's guns "point to" the mouse, like in Galleons except better. |