BodyVelocity don't move the player when has a tool

Hi, as the title says, the BodyVelocity works fine when the player doesn’t have a tool. But when the player equips a tool, the BodyVelocity just doesn’t work.

Here’s the code:

UserInput.InputBegan:Connect(function(input, gameprocess)
	if (not gameprocess) then
		if Char:WaitForChild("Values"):WaitForChild("CanMove").Value == true then -- if the player got parried
			if input.KeyCode == Enum.KeyCode.E then
				if Keys.A_Key == true then --The direction key for the bodyvelocity
					DogeAnim:Play()
					
					
					-- the bodyvelocity part
					local E_DogeForce = Instance.new("BodyVelocity")
					E_DogeForce.Parent = RootPart
					E_DogeForce.MaxForce = Vector3.new(1,0,1) * 30000
					E_DogeForce.Velocity = RootPart.CFrame.rightVector * -70
					
					task.wait(0.3)
					E_DogeForce:Destroy() -- destroy the bodyvelocity
				end
			end
		end
	end
end)

Here’s a video about the problem:

Try setting the Handles Massless property to true

1 Like

Ty for the response, i just try now and it’s not working yet.
image

WAIT, i got the solution, it was just all the parts of the tool Massless.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.