1.The script successfully is triggered from the RemoteEvent, and the camera switches to scriptable, but the CFrame doesn’t change
local TS = game:GetService("TweenService")
game.ReplicatedStorage.RemoteEvents.CameraEvent.OnClientEvent:Connect(function()
local camera = game.Workspace.CurrentCamera
local function Play(part)
TS:Create(camera,TweenInfo.new(5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{CFrame = part.CFrame}):Play()
wait(5)
end
camera.CameraType = Enum.CameraType.Scriptable
for _, camerapart in pairs(script.Parent:GetChildren()) do
if camerapart:IsA("Part") then
if camerapart.Name == "1" then
camera.CFrame = camerapart.CFrame
else
Play(camerapart)
end
end
end
end)