How do I make player go forward when swinging a sword

  1. What do you want to achieve? Keep it simple and clear!
    I want player to move forward a bit when swinging a sword

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to do it. I think I know that I have to use a body movers but I don’t know which one to use or how to use them

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried looking at some articles and searching for tutorials but still have no idea

Here is a reference for what I mean
(In the video when he swing the sword his body will move forward a bit)

1 Like

What I’d recommend is using a BodyVelocity and setting the Velocity to around 5-10 studs in front of the player then Destroy it nearly instantly.

1 Like

Just make a swinging animation and play it. Also you making Genshin on Roblox?

1 Like

use body velocity and change the velocity to

HumanoidRootPart.CFrame.LookVector*Distance
1 Like

why

use

part.CFrame:ToWorldSpace(CFrame.new(0,0,-5))--if it is backwards use 5
1 Like
local player = game.Players.LocalPlayer
local char = player.CharacterAdded:Wait()
local root = char:WaitForChild("HumanoidRootPart")
local hum = char:WaitForChild("Humanoid")
local strength = 750


while wait(2) do
	print("IMPULSE")
	local state = hum:GetState()
	hum:ChangeState(Enum.HumanoidStateType.Physics)
	root:ApplyImpulse(root.CFrame.LookVector * strength)
	wait(0.1)
	hum:ChangeState(state)
end

I think this looks good

2 Likes

Because changing the cframe directly will literally teleport you and op wanted to use some body mover.

1 Like

Would work better in this instance.

1 Like