So I wanted an Intro cutscene for my game. The characters camera would be set to a part, he blinks and stuff and then the game starts. But when his camera is just stuck facing forwards it looks weird. So i made a little animation in Moon Animator for the part but when I try play the animation it doesnt play no matter what. I tried playing the animation from the Server and Client but neither worked. No error message.
Edit: I looked for the server and the part is playing the animation. But the client isnt. It’s either the animation isn’t playing for the client, or the client’s camera isnt updating along with the part.
Server.
game.ReplicatedStorage.PlayCutscene.OnServerEvent:Connect(function(player)
local IntroCamera = workspace.IntroCutsceneCam
local Anim = IntroCamera.Humanoid.Animator:LoadAnimation(IntroCamera.Humanoid.Animation)
Anim:Play()
end)
I just double checked something, the animation does play on the client but the camera doesnt follow the part. It sticks to the CFrame it was put to and doesnt change despite me setting the camera subject to the part.
It is. IntroCutsceneCamera is a model and there is a part inside of it called IntroCutsceneCamera, I was going to change the naming after I figured this out. The CFrame is set to the Part CFrame
I’ll try get one but whats happening is there is an anchored part which is the camera. The player’s camera is set to the ‘introcamera’. The introcamera plays an animation (which plays thankfully) however the players camera is not updating alongside the introcamera, so while the introcamera is playing the animation, the players camera is stuck on the first frame of the animation.
oh, now i understand, you should set the camera position in loop cause the part CFrame is constantly changing.
Or set the part as the camera primaryPart, but i’m not sure how it’s done