Prevent player from staying afloat

LinearVelocity causes the character or any part that’s being simulated to stay afloat during the state, any workarounds?

local Velo = Instance.new("LinearVelocity")
Velo.VectorVelocity = Character.PrimaryPart.CFrame.LookVector*50
Velo.Attachment0 = ATT
Velo.MaxForce = math.huge
Velo.RelativeTo = Enum.ActuatorRelativeTo.World
Velo.ForceLimitMode  = Enum.ForceLimitMode.Magnitude
ATT.Parent = Character.HumanoidRootPart
Velo.Parent = Character.HumanoidRootPart

I was on the part before it but upon “getting off it” I stayed afloat.

4 Likes

Your going to have to construct a new Vector3 without the Y component

local humrp = Character.PrimaryPart
local LookVector = humrp.CFrame.LookVector
Velo.VectorVelocity = Vector3.new(LookVector.X, 0, LookVector.Z) * 30

@weakroblox35 Actually just did some testing for myself and this didn’t fix it, the reason this is happening is because your MaxForce is set to math.huge

Which number should I set the MaxForce to then?

1 Like

Hmm what worked for be was like 10000

1 Like