I need help with getting the weld to face the direction that the mouse is pointing to, so far the turret is turning, though it's facing the opposite side that the mouse is pointing. This is what I have so far;
local offset = (Turret.Connector.Position - Mouse.Hit.p) local direction = offset.Unit local angle = math.atan2(direction.Z, direction.X) + math.pi local angle2 = math.asin(direction.Y) VerticalValue.Value.Value.C0 = CFrame.new(VerticalValue.Value.Value.C0.p) * CFrame.Angles(0, direction.X, 0)