I have made a part with a click detector and when you use the click detector you should not be able to walk and jump, the problem now is that I can stop walking but for some reason can keep jumping.
Go to StarterPlayer and tick the CharacterUseJumpPower Property. That should fix it since by default it uses JumpHeight. Alternatively, you can edit the JumpHeight to 0.