Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you launch player in facing direction through a script?

Asked by
Scaii_0 145
6 years ago

So, I want to launch the player forward, let's say about 30, how would I do this through a script?

I've tried using Velocity in the properties of the UpperTorso, but the axis is fixed so you can only get launched in one direction every time:

local torso = character.UpperTorso 
        torso.Velocity = Vector3.new(-50,5,torso.Velocity.z*1.5)

Is there another property that can be used, or another way in general?

1 answer

Log in to vote
0
Answered by 6 years ago
local torso = character.UpperTorso 
torso.Velocity = torso.CFrame.lookVector * 75 --increase/decrease 75 to change speed
Ad

Answer this question