I'm trying to use tweening to make a gui transition, but in the Tween:Create() part, I put the instance, the table and then the positions. But the script is casting it to the table.

Please help!!!

script.Parent.MouseButton1Click:Connect(function()
	for i,v in pairs(game.Players.LocalPlayer.PlayerGui:GetDescendants()) do
		if v:IsA("Frame") or v:IsA("TextButton") or v:IsA("TextLabel") then
			v.Visible = false
		end
	end
	local player = game.Players.LocalPlayer
	local transition = game.Players.LocalPlayer.PlayerGui.TransitionGUI
	local tweenService = game:GetService("TweenService")
	game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
	script.Parent.Parent.Parent.Parent.click:Play()
	local screenChanges = {UDim2.new(1,0,1,0), UDim2.new(0,0,0,0)}
	local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, false, 0)
	workspace.CurrentCamera.CameraType = "Scriptable"
	workspace.CurrentCamera.CFrame = workspace.CamPart.CFrame
	local tween = tweenService:Create(
		player.PlayerGui.TransitionGUI.Frame, 
		tweenInfo, 
		screenChanges)
	tween:Play()
end)