Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make the camera follow your character whilst in a animation?

Asked by 5 years ago

I'm new to Animating, please forgive me on if i'm clearly doing something wrong.

So, I figured I'd make a front flip animation. Not the type that replaces the default jump when you jump in-game, it's a front flip that activates when you press a key.

local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
Anim = script.Animation

Mouse.KeyDown:connect(function(key)
if key == "c" then
a = player.Character.Humanoid:LoadAnimation(Anim)
a:Play()

So in the Animation editor I made the model do a front flip, there's two problems in this..

1) My character camera stays behind as the actual body moves forward, how can I make the camera follow the torso whilst the animation is playing?

2) When the animation ends, the body returns back to it's initial place. What I want is, the landing point where the animation takes you, your new position.

If there's a much easier way to do this, please tell me.

0
Please use Connect rather than connect. Also, pretty sure you can set the CameraSubject of the Camera in the Workspace to the character's Torso and set its CameraType to Follow. lunatic5 409 — 5y
0
Not exactly sure how that would turn out though. Might be too close up. You could mess around with the settings though. lunatic5 409 — 5y
0
use Body Positioners for the movement or :Move 129Steve129 7 — 5y

Answer this question