Assembly Linear Velocity dashing causing floating

  1. What do you want to achieve? Keep it simple and clear!

Make sure no force is being set on the Y Axis

  1. What is the issue? Include screenshots / videos if possible!

Y force being applied to AssembyLinearVelocity causes the player to float if they jump and dash.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I looked everywhere and im pretty sure i couldnt find any solution.

local Data = configs.steps[Direction]

		local loop = function(dt, i)
			local directions = {
				["Left"] = -RootPart.CFrame.RightVector,
				["Right"] = RootPart.CFrame.RightVector,
				["Front"] = RootPart.CFrame.LookVector,
				["Back"] = -RootPart.CFrame.LookVector
			}
			RootPart.AssemblyLinearVelocity = Vector3.zero + (directions[Direction] * RootPart:GetMass() * i) * Vector3.new(1,nil,1)
			print(RootPart.AssemblyLinearVelocity)
		end

		fpsLoop(60, Data.Steps, Data.Index, Data.End, "Higher", loop)
		
		RootPart.AssemblyLinearVelocity = Vector3.zero

If anyone could help me out with this i would be happy.

1 Like

Fixed it, if you have the same issue here is how i fixed it
local linearVelocity = directions[Direction] * RootPart:GetMass() * i
RootPart.AssemblyLinearVelocity = Vector3.new(linearVelocity.X, RootPart.AssemblyLinearVelocity.Y, linearVelocity.Z)