When I play a rolling animation, it executes fine except for the fact that the camera stays in its current position and never follows the character through moving forward. Also, the character returns back to its original position after the animation has played rather than staying at the position the animation rolled it forward to. Here is my script and it would be much appreciated if you could help:

local debounce = false

local player = game.Players.LocalPlayer
repeat wait() until player.Character.Humanoid
local humanoid = player.Character.Humanoid
local mouse = player:GetMouse()

local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset/?id=2835132477"

mouse.KeyDown:connect(function(key)
	if key == "e" and debounce == false then
		debounce = true
		local playAnim = humanoid:LoadAnimation(anim)
		playAnim:Play()
		wait(.75)
		debounce = false
	end
end)

1 comment

0

cameras dont follow characters when the move in different positions in an animation. the camera only follows you when you move. so what you should do is just have the character "roll" in place so they move on their own.