Camera manipulation help

So i’m trying to create som sort of check-in system, and that i’ve got all sorted out. But im in need of making smooth camera movement. The camera moves as seen in the video (below) but it just goes back to the player camera after a few seconds. Im trying to make so it doesnt go back to the players camera before i exit the system. All I need is to make sure it doesnt just go automatically back to the player’s camera.

My code:
(Located in startercharacterscripts)

local ts = game:GetService("TweenService")

local ProximityPromptService = game:GetService("ProximityPromptService")

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local tiC = TweenInfo.new(4, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local createInC = ts:Create(Camera, tiC, {CFrame = workspace.Camerapart.CFrame})

ProximityPromptService.PromptTriggered:Connect(function(object, player)
	if object == game.Workspace["Self Check in"].SCI.ProximityPrompt then
		game.Workspace["Self Check in"].SCI.ProximityPrompt.Enabled = false
		createInC:Play()
		wait(4)
		Camera.CameraType = Enum.CameraType.Scriptable
	end
end)

Could anyone please help me… I get no errors.

3 Likes

considering after 4 seconds the camera changes, your wait(4) followed by changing the camera type is likely resetting the camera back to its original position. try removing that.

Move “Camera.CameraType = Enum.CameraType.Scriptable” above “createInC:Play()