Player moving alone when he's holding a sword on MouseLock

https://gyazo.com/48de35384ac6f91bd4842e73bc849a5c

As you can see in the gif my player is moving alone whenever when the mouse is locked with shift. It only occurs when the player is holding that sword. I tried setting the massless property of all the baseparts to true. I also changed their density and the weight of the density. Any idea?

By the way, a weld constraint is used so that the player can hold the handle of the sword.

Figured out it was because of a BodyGyro smh.

Mark as solution if you have solved.

Hmmmm. The thing is that I know the source of the problem, but I don’t really know how to fix it. I’m making it so the player is suppose to look at the mouse for slashing. I can’t give up that BodyGyro. I tried tweaking some properties, but I still got the same issue.

1 Like

I think the problem is that you’ve put it in the lower torso instead of the HumanoidRootPart. LowerTorso is always moving due to animations, and this might be the problem.

Oh. It was HumanoidRootPart at first. I changed it for see what it would output with the torso.

I also noticed that it also happens when I’m not even equiping the sword. I tested without the sword and it still did that, but it was less noticeable.

I could only “enable” the Gyro when the player is clicking, but that’s still not really solving the bug itself. If someone has a suggestion let met know.

1 Like

Ah, dumb me. I kind of figured out what happen. I’m using a BodyGyro to make the character look at my mouse, but the MouseLockSwitch is already taking care of the rotation. Dumb me.

2 Likes