Im trying to make a viewport frame that just shows a camera going to flip but the camerapart is only moving not the rest of the weld how do I fix it??
local TweenService = game:GetService("TweenService")
local cam = workspace.CurrentCamera
script.Parent.MouseEnter:Connect(function()
cam.CameraType = Enum.CameraType.Attach
cam.CameraSubject = workspace.CamPart
local part = script.Parent.Parent.ViewportFrame.Model.Camera
local tweenInfo = TweenInfo.new(
1, -- Duration
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out
)
local camopen = TweenService:Create(part, tweenInfo, {CFrame = game.Workspace.Open.Camera.CFrame})
script.Parent.Parent.ViewportFrame.Visible = true
camopen:Play()
end)