-
What do you want to achieve? Keep it simple and clear!
I want character while falling has the same moving speed with the running speed -
What is the issue? Include screenshots / videos if possible!
robloxapp-20230725-1809489.wmv (1.9 MB)
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character.Humanoid
local humanoidRootPart = character.HumanoidRootPart
local bodyForce = humanoidRootPart:WaitForChild("BodyForce")
local runService = game:GetService("RunService")
runService.Heartbeat:Connect(function(dt)
if humanoid then
bodyForce.Force = humanoid.MoveDirection * 10000
end
end)
end)