What do you want to achieve? Keep it simple and clear!
I want player to move forward a bit when swinging a sword
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
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)
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