Hello.
Currently there is an issue with my weapon system,
when RootPart rotation is enabled (RootPart rotation = RootPart orientates relative to mouse position), It seems to move the player forwards, and tilt the torso.
Example:
The movement is not intentional and is not supposed to happen.
When this code here (marked with > ) has comment toggled on, it will cause that to occur:
local lookToPosVector = Vector3.new(mouse.Hit.Position.X,root.CFrame.Y,mouse.Hit.Position.Z)
> root.CFrame = CFrame.new(root.CFrame.p,lookToPosVector)
aocf:FireServer("mouse",{mouse.Hit,mouse.Origin,false}) -- < dont mind this
I don’t know what causes this. (It seems to be the neck and the blade messing with something?)
Any help is appreciated.