I am trying to make a script which basically you walk through a part then a small cutscene will show up. I did that and everything but I’m trying to code that the camera returns to the player again.
I am trying to make a script which basically you walk through a part then a small cutscene will show up I did that and everything but I am trying to code that the camera returns to the player again,
Here’s the code:
local CameraPart = workspace.CameraScenes.Camera1
local Interact = game.Workspace.Parti
local Players = game:GetService(“Players”)
Interact.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild(“Humanoid”) then
local Camera = workspace.CurrentCamera
Camera.FieldOfView = 70
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CameraPart.CFrameend
end)
Thanks!