Friction keeps affecting my dash

I’ve looked at this post here and have tried the solution, but friction still seems to be an issue! (albeit not as much)

I’m also using BodyVelocity which I would like to avoid using as it’s deprecated, but I don’t know any other much viable options! others I have tried I’ve struggled to get working or were overkill/not my taste : /

-- Services
local uis = game:GetService("UserInputService")
local plrs = game:GetService("Players")
local debris = game:GetService("Debris")

-- Objects
local plr = plrs.LocalPlayer
local chr = plr.Character or plr.CharacterAdded:Wait()
local hum = chr:FindFirstChildOfClass("Humanoid")
local root = chr:WaitForChild("HumanoidRootPart"):: BasePart

-- Values
local isDashing = false
local dashSpeed = 125
local mxf = Vector3.new(100000, 0, 100000)

uis.InputBegan:Connect(function(input, gameProcessed)
	if input.KeyCode == Enum.KeyCode.Q and not gameProcessed then
		if not isDashing then
			isDashing = true
			
			local dir: Vector3
			if hum.MoveDirection ~= Vector3.zero then
				dir = hum.MoveDirection
			else
				dir = root.CFrame.LookVector
			end
			
			local str = (dir * Vector3.new(1, 0, 1)).Unit * dashSpeed
			local velocity = Instance.new("BodyVelocity")
			velocity.Parent = root
			velocity.P = 1250
			velocity.MaxForce = mxf
			velocity.Velocity = str
			debris:AddItem(velocity,.1)
			
			task.wait(.1)
			isDashing = false
		end
	end
end)

fyi it’s local!

bump! I would like to know of a different way if possible ^^

You could edit the friction of the baseplate under CustomPhysicalProperties :+1:

1 Like

bodyVelocity is completely fine to use, and it’s more reliable than the “new” bodymovers. Also, you can try editing the characters legs custompphysical properties, or all parts in the character.

1 Like

nothing really changed after removing it’s friction which I find odd

this also ended up not working, even when the baseplate had no friction as well

ok what about doing that but also making all parts in the charcater masless

2 Likes

seems to work better now, but now it’s overshooting the normal dash.
I will work with the values though! thank you! ^^

1 Like

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