ive made a rolling animation but i dont know how to make it so it projects you (moves you) forward depending on which way your character is facing.
Code:
repeat wait() until game.Players.LocalPlayer.Character
local Player = game.Players.LocalPlayer
local Char = Player.Character
local UIS = game:GetService('UserInputService')
local Played = false
function TestAnim(input)
if input.KeyCode == Enum.KeyCode.R and Played == false then
Played = true
local Anim = Instance.new('Animation')
Anim.AnimationId = 'rbxassetid://12345678'-- fake animation id
local PlayAnim = Char.Humanoid:LoadAnimation(Anim)
PlayAnim:Play()
wait(3)
Played=false
end
end
UIS.InputBegan:connect(TestAnim)
this script here does a rolling animation but stays at the same place, however i dont know how to make it so it plays the animation and moves you forward. I hope you understand what i mean.

2 comments
Ah, I see you are trying to make a roll-move like the one in the egg hunt. That's pretty cool! Will help you out if any idea comes to my mind.
yea im trying to make it like the roll in egg hunt