Character movement and SelectedObject

If I am walking then use a developer made menu (Using GuiService SelectedObject and for example X to open the menu) then my character will continue to walk. Then when I close the developer made menu (B), and let go of the analog stick my character is stuck walking. This happens in my game, but I also checked out MM2 on Xbox as well and got the same thing to happen. Is there a way to stop this?

1 Like

You can check if something is selected, and then try setting WalkSpeed to 0 possibly. Or, you could just use Move(Vector3.new(0, 0, 0)) on the player’s humanoid.

If I missed what you were trying to say, then the solution might be to check the previous analog input.