Trouble on making Character Stay still with BodyVelocity

Hello there!

I do not understand how to make a way so when you Hold E your character will stay in that position you just pressed and wont move, like the way other game do.
I tried to use Body Velocity and set the MaxForce and Velocity to:

vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = Vector3.new(0,0,0)

But my problem is that when you are walking and at the same time Holding E to stay put, the Character starts to wubble and when you release the key the character starts to rotate everywhere,
What it is supposed to hapen:
robloxapp-20211020-1920165.wmv (1.7 MB)
What it does when you walk at the same time:
robloxapp-20211020-1921502.wmv (2.5 MB)

Extra information:
I have PlatformStand to true while you hold E and goes to false when the animation Stops
I have also AutoRotate to false when you hold E.
WalkSpeed and JumpPower to 0 while you hold it.
(The problem starts to show when you Walk nonstop and Then you press E not while you are still)

How can i fix this Problem?
Is there any way i can achieve this?
Any suggestion are Appresiated!!!

1 Like

I don’t know if this is what you wanted but here:

local players=game:GetService("Players")
local Prox=workspace.Folder.TestingPart.ProximityPrompt --Reference your own part and ProximityPrompt
players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		Prox.PromptButtonHoldBegan:Connect(function()
			char.Humanoid.WalkSpeed=0
			char.Humanoid.JumpPower=0
		end)
		Prox.PromptButtonHoldEnded:Connect(function()
			char.Humanoid.WalkSpeed=16
			char.Humanoid.JumpPower=50
		end)
	end)
end)