Video of the issue ←
I’m not sure how I would prevent the camera from changing that split second before the animation starts. Any recommendations?
From the Client
local Char;local PlayerHum
if Info["Animate_Player"] then
Char = game.Workspace[Info["Animate_Player"][2].Name] or game.Workspace:WaitForChild(Info["Animate_Player"][2].Name)
PlayerHum = Char.Humanoid or Char:WaitForChild("Humanoid")
end;
local CameraRig = Info["Camera_Rig"];local CameraAnimation,PlayerAnimation = Instance.new("Animation");
local CameraHum = CameraRig.Humanoid or CameraRig:WaitForChild("Humanoid")
Camera.CameraType = CameraProperties["Camera Type"];--Camera.CameraSubject = CameraRig.PrimaryPart;
CameraAnimation.AnimationId = Info["Camera_Animation"];local CamTrack = CameraHum:LoadAnimation(CameraAnimation);CamTrack:Play()
local MoveCamera = game:GetService("RunService").RenderStepped:Connect(function()
if CameraRig.PrimaryPart.CFrame ~= CFrame.new(0,0,0) then
Camera.CFrame = CameraRig.PrimaryPart.CFrame
end
end)
CamTrack:GetMarkerReachedSignal("Pyro"):Connect(function(paramString)
end)
CamTrack:GetMarkerReachedSignal("Queue Player"):Connect(function(paramString)
if Info["Animate_Player"] and Info["Animate_Player"][1] then
PlayerAnimation = Instance.new("Animation");PlayerAnimation.AnimationId = Info["Player_Animation"];
local PlayerTrack = PlayerHum:LoadAnimation(PlayerAnimation);PlayerTrack:Play()
end
end)
CamTrack.Stopped:Connect(function()
MoveCamera:Disconnect();Camera.CameraType = Enum.CameraType.Custom;Camera.FieldOfView = 70;Camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
end)