Help I wanted it so that whenever the player clicks that button his camera goes back to the player and the cutscene is finished but I need help any solutions?
local camera = workspace.CurrentCamera
local focus = workspace.Focus
local playBtn = script.Parent
local Place = game.Workspace.Focus2
local player = game.Players.LocalPlayer
local TweenService = game:GetService(“TweenService”)
repeat
wait(.1)
camera.CameraType = Enum.CameraType.Scriptable
local Info = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
false,
0
)
local CamTween = TweenService:Create(camera, Info, {CFrame = Place.CFrame})
CamTween:Play()
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = focus.CFrame
local function onPlay()
camera.CameraType = Enum.CameraType.Custom
print(“function”)
playBtn.Visible = false
end
playBtn.Activated:Connect(onPlay)
