Hello, I am working on a cutscene for my game and I’ve been using a model a friend showed me, I’m having issues with a local script, for some reason part A is in workspace but the Local script cannot detect it, I have not had something like this happen before, I am not sure if Roblox changed something up with Local scripts.
The error occurs when it states (MoveCamera(game.Workspace.PartA)
wait(0)
local TweenService = game:GetService("TweenService")
local Camera = game.Workspace.CurrentCamera
local function MoveCamera(StartPart, EndPart, Duration, EasingStyle, EasingDirection)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = StartPart.CFrame
local Cutscene = TweenService:Create(Camera, TweenInfo.new(Duration, EasingStyle, EasingDirection), {CFrame = EndPart.CFrame})
Cutscene:Play()
wait(Duration)
end
local function Cutscene()
MoveCamera(game.Workspace.PartA, game.Workspace.PartB, 9.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) ---HERES WHERE ERROR OCCURS IT CANNOT DETECT PART IN WORKSPACE ALTHOUGH IT IS THERE
MoveCamera(game.Workspace.PartC, game.Workspace.PartD, 7, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
wait(.5)
Camera.CameraType = Enum.CameraType.Custom
Camera.CameraSubject = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
end
Cutscene()