so i have this script:
target.CFrame = CFrame.new(target.Position,mouse.Hit.Position)
it dosn’t go where it looks like it is pointing even though it looks like it, how do i fix this?
so i have this script:
target.CFrame = CFrame.new(target.Position,mouse.Hit.Position)
Hit is a CFrame, so use LookVector.
nope, goes only one odd direction when i do that
Then you can use this method I use.
target.CFrame = CFrame.new(Vector3.zero, mouse.Hit.LookVector) + target.Position
target.CFrame = target.CFrame*CFrame.Angles(0, math.pi, 0)