[SOLVED] How do i force the player to jump?
Asked by
6 years ago Edited 6 years ago
I am making this script that should launch the player forward using a BodyVelocity
and i want the player to jump because otherwise the velocity would decrease allot than if the player were to actually jump.
This is my current script:
1 | local player = game.Players.LocalPlayer |
2 | local char = player.Character |
3 | local rootpart = char.HumanoidRootPart |
4 | char.Humanoid.Jump = true |
5 | local force = Instance.new( "BodyVelocity" ,rootpart) |
6 | force.Velocity = rootpart.CFrame.lookVector * Vector 3. new( 50 , 0 , 50 ) |
But the problem is that the char.Humanoid.Jump = true
doesn't make the character jump.
So what i am asking is Can i force the player to jump?
Is that even possible?
If this is not possible, please let me know if there is a way to force the player to jump.