but when i aim at the top left, it goes the opposite direction except for the right side of the boat and i have been doing everything to make it work properly, from forums to problem solving, i am losing it. The only one seems to work cause the boat is welded and such, is manipulating the C0 and C1
Putting the X and Z is the only way it able to turn left and right, back and front without Y axis interfering, but the Y axis is not even real because it won’t rotate the gun in any way
Alright, some new info, LookVector makes it look slightly up and it stays in place for some reason and the other new info is that it does turn the right way but only when the mouse is hitting something far away
I made something, test this out though, might not work, and you also have to replace a ton of stuff:
local Player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Part = workspace.Part
game["Run Service"].RenderStepped:Connect(function()
local MousePosition = game["UserInputService"]:GetMouseLocation()
local MousePositionIn3DSpace = Camera:ScreenPointToRay(MousePosition.X, MousePosition.Y)
Part.CFrame = CFrame.lookAt(Part.CFrame.Position, Vector3.new(MousePositionIn3DSpace.Direction.X, 0, MousePositionIn3DSpace.Direction.Y))
end)