task.wait(2)
local part = game.Workspace.ControlBlock2.ClickModel.ClickPart
local click = part.ClickDetector
local tweenService = game:GetService("TweenService")
local info = TweenInfo.new(2)
click.MouseClick:Connect(function(plr)
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
local tween = tweenService:Create(camera, info,{CFrame = CFrame.new(part.CFrame.Position.X, part.CFrame.Position.Y + 100, part.CFrame.Position.Z), CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))})
tween:Play()
click:Destroy()
end)
. Presumably, you intended on doing something with the CFrame created with fromEulerAnglesXYZ rather than attempting to put it in an entirely different, nonexistent index in the dictionary, however, you can just omit that part entirely since your rads are equal to zero in this current version.
instead of adding a new element into the tween array, putting both CFrame constructors and combining them with * adds both the positional and rotational coordinates