- What do you want to achieve? Keep it simple and clear!
Make sure no force is being set on the Y Axis
- 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.
- 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.