game.ReplicatedStorage:WaitForChild("EventsAndValues").Cutscene.OnClientEvent:Connect(function(map)
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local target = map.C1
local target2 = map.C2
local camera = workspace.Camera
camera.CameraType = Enum.CameraType.Scriptable
local goal = {}
goal.camera.Focus = target.CFrame
wait(4)
goal.camera.Focus = target.CFrame
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0)
local tween = TweenService:Create(camera, tweenInfo, goal)
tween:Play()
end)
Error -
15:13:50.929 - ReplicatedFirst.CutSceneEvent:17: attempt to index nil with 'Focus' 15:13:50.929 - Stack Begin 15:13:50.930 - Script 'ReplicatedFirst.CutSceneEvent', Line 17 15:13:50.930 - Stack End
This is my 1st go with camera manipulation and I'm not sure if everything beyond that is correct either. Please and Thanks
