Still have questions? Join our Discord server and get real time help.
Log in to vote

How do I make the camera follow character while playing an animation?

Asked by 6 months ago

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 ="Animation")
anim.AnimationId = ""

    if key == "e" and debounce == false then
        debounce = true
        local playAnim = humanoid:LoadAnimation(anim)
        debounce = false
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. wookey12 154 — 6mo

Answer this question