#how do i make this stuttery movement stop
1 messages · Page 1 of 1 (latest)
game.ReplicatedStorage.Remote.Event.ApplyForce.OnClientEvent:Connect(function(Amount:number)
local hrp = p.Character:FindFirstChild("HumanoidRootPart")
hrp:ApplyImpulseAtPosition(hrp.CFrame.LookVector * Amount, hrp.Position)
end)
that is how i am applying the impulse
the amount is 1200
game.ReplicatedStorage.Remote.Event.ApplyForce.OnClientEvent:Connect(function(amount: number)
local char = p.Character
if not char then return end
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local force = hrp.CFrame.LookVector * amount * hrp.AssemblyMass
hrp:ApplyImpulse(force)
end)
still has the choppy movement
wait maybe not
actually yea looks good
ty
Fr