im trying to get an animation that is moving the HRP with a bodymover so far i was using bodyposition to move the hrp to the end of the animation but its a little glitchy so im think of using body velocity to move the hrp while the animation (changed the animation to not move) is moving but i have no way to tell what direction the player is facing so i cant move the body velocity based on what direction the character is facing, i know that i might be able to use orientation but idk how. can someone show me a strip of code to help me heres my code.
mouse = game.Players.LocalPlayer:GetMouse()
player = game.Players.LocalPlayer
humanoidrootpart = player.Character.HumanoidRootPart
bodymover = game.Workspace.BodyVelocity
mouse.KeyDown:Connect(function(key)
bodymover.Parent = humanoidrootpart
if string.lower(key) == "q" then
end
end)
the idea here is that when q is pressed the still animation will play and the bodyvelocity will move it in the direction that the person is facing then when the animation stops bodyvelocitiy will be set to 0. this is a very early script so i barely have anything on it.

1 comment
thank you for the answer, i dont fully understand the script but i will take time to examine the script