Smoothly but quickly move character the direction they're facing for a second

I’m trying to briefly move my character they way they’re facing when they swing a sword (to just give them a little lunge). the only part that I need help on is the whole moving the way they’re facing part of the script.

I’m not sure how to use LookVector and CFrames.

Help is appreciated!!! thanks!

local Character = game.Players.LocalPlayer.Character
local BV = Instance.new("BodyVelocity", Character.HumanoidRootPart)
BV.Velocity = Character.HumanoidRootPart.CFrame.LookVector * (Insert a number here) --This is the "moving forward" part of the script, mess around with the number until you get the distance you want + Also change the wait time if it's too long
task.wait(1)
BV:Destroy()

LookVector uses CFrame and CFrame is the position and orientation of an object
If you still are confused on how they work, read about CFrames here

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.