I'm trying to make a camera manipulation script for a cut-scene intro, and I'm new to FE and I cant get my script to work. It works perfectly in studio but now in the real game. I have a local script in StarterPlayerScripts which is this
camera = game.Workspace.CurrentCamera game.ReplicatedStorage.camera.camera1.OnServerEvent:Connect(function() local target = game.Workspace.Cameras.cam1 camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, 6.25, 0) * CFrame.new(0, 0, 0) end) game.ReplicatedStorage.camera.camera3.OnServerEvent:Connect(function() local target = game.Workspace.Cameras.cam3 camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, 6.25, 0) * CFrame.new(0, 0, 0) end)
And a main script which fires the remote events also in StarterPlayerScripts
camera = game.ReplicatedStorage.camera wait(2) camera.camera1:FireServer() wait(3) camera.camera2:FireServer()
can someone please help with this? I've been stuck with this for a while with no result!