Help on BodyVelocity

This code below has no effect but it does instance the velocity

local hum = char:WaitForChild("Humanoid")|

local HRP = char:WaitForChild("HumanoidRootPart")|
game.ReplicatedStorage.dash:FireServer()|
local vel = Instance.new("BodyVelocity",HRP)|
vel.Velocity = HRP.Orientation * Vector3.new(100, 100, 100)|
vel.MaxForce = Vector3.new(99999, 99999, 99999)|
vel.P = Vector3.new(999999999, 0, 99999999)|
wait(.5)|
vel:Destroy()|

there are no errors just the player does not move when instanced and the body force has a assigned direction but it is not moving there

Try increasing the MaxForce to larger values.

i have done that now it launches the player up wards

Try changing the script:

local hum = char:WaitForChild("Humanoid")

local HRP = char:WaitForChild("HumanoidRootPart")
game.ReplicatedStorage.dash:FireServer()
local vel = Instance.new("BodyVelocity",HRP)
vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
vel.Velocity = HRP.CFrame.LookVector * Vector3.new(100, 100, 100)
vel.P = Vector3.new(999999999, 0, 99999999)
wait(.5)
vel:Destroy()
1 Like

thank you works rlly well have a nice day

1 Like