CameraType doesn't change?

Here’s my code:


local Rep = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local plr = Players.LocalPlayer

local plrgui = plr:WaitForChild("PlayerGui")
local cam = workspace.CurrentCamera
local gui = plrgui:WaitForChild("dialogue")
local ui = gui:WaitForChild("Mainframe")
local text = ui:WaitForChild("TextLabel")
local title = gui:WaitForChild("Title")
local npcTitle = title:WaitForChild("TextLabel")
local TS = game:GetService("TweenService")

local speak = require(Rep:WaitForChild("Speak"))

local remotes = Rep:WaitForChild("NPC")

local interact = remotes:WaitForChild("Interact")

local morrowCamPart = workspace:WaitForChild("MontaguCamPart")

cam.CameraType = Enum.CameraType.Scriptable

interact.OnClientEvent:Connect(function(name, text)
	npcTitle.Text = name
	cam.CameraType = Enum.CameraType.Scriptable
	local tween = TS:Create(cam,, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut), {CFrame = morrowCamPart.CFrame})
		cam.CameraType = Enum.CameraType.Scriptable
	local npc = game.Workspace.NPCS[name]
	local head = npc.Head
	speak:Speak(plr, head, head.Mouth, text)

For some reason, the camera type doesn’t change at all.

NEVERMIND, FIGURED OUT WHY IT’S HAPPENING. It was another script in my game I forgot to disable x)