So I am adding a rolling feature to my game. Ik how to do the animation part but do not not how to make the player move in the direction they are facing. help
Here is my animation script:
local UIS = game:GetService('UserInputService')
local Anim = script.Parent:WaitForChild('RollAnim')
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.R then
local Animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
Animation:Play()
end
end)

6 comments
Thank you
But one thing, when I do it my player just teleports. Is there any way to make it a niice smooth transition
Tweening exists, and you can also use BodyPosition.
could you tell me how i could use that in this case
I'll send some links:
https://developer.roblox.com/en-us/api-reference/class/TweenService https://developer.roblox.com/en-us/api-reference/class/BodyPosition