How do I fix this tween error?

I wanted to make an area of my title screen where I credit tutorials, models, or scripts that I used in my game. However, when I want to use TextTransparency in a tween, I get an error.

local CreditsTitle = Tween:Create(CreditsTitle, TweenInfo.new(0.3), {CreditsTitle.TextTransparency = 0})

What am I doing wrong?
This is what the output states:

13:01:46.403  TweenService:Create no property named 'TextTransparency' for object 'Tween'  -  Client - MenuMain:62

Should just be TextTransparency. Also, it can’t be the same name CreditsTitle, because it thinks you want to tween a tween

Same error:

13:10:31.232  TweenService:Create no property named 'TextTransparency' for object 'Tween'  -  Client - MenuMain:62

that pops up when I remove CreditsTitle in “{CreditsTitle.TextTransparency = 0})”

Can you explain this? How am I trying to tween a tween?

CreditsTitle is a Tween. TweenService:Create returns a tween.

In this segment, what should I replace “CreditsTitle” with then?

(CreditsTitle, TweenInfo.new(0.3)

w3venq_87851

It should be whatever the instance of TextLabel you want to tween.

1 Like

This cleared up the previous errors, thanks, but when I click “Credits(when my game runs)” only the background transparency of the frame “CreditsPopup” only appears to be non-transparent. If :Play() is by itself, the same thing happens. If I pair a textlabel’s name with :play(), I get a new error.

Play is not a valid member of TextLabel   "Players.PoweredPilots.PlayerGui.Menu.CreditsPopup.AlvinBlox" 

alvin taught me scripting :slight_smile:

edit 2: this is what it looks like if anyone’s wondering

So, the third property in Tween:Create()
{CreditsTitle.TextTransparency = 0}
Refers to a list of the Properties you want to change and the Value you’re giving them.

So in this case, there’s no property called “CreditsTitle.TextTransparency

Just remove the ‘CreditsTitle.’ and it should be fine.

local CreditsTitle = Tween:Create(CreditsTitle, TweenInfo.new(0.3), {TextTransparency = 0})

Can you post the whole code? I appreciate the simplicity, but posting the whole code makes identifying the error easier.

1 Like

code:

wait(5)

-- Services
local Tween = game:GetService("TweenService")
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

-- Sidebar
local Sidebar = script.Parent:WaitForChild("Sidebar")
local PlayBtn = Sidebar:WaitForChild("Play")
local CreditsBtn = Sidebar:WaitForChild("Credits")
local Title = Sidebar:WaitForChild("Title")

-- GamePopUp
local GamePopup = script.Parent:WaitForChild("GamePopup")
local Background1 = GamePopup:WaitForChild("Background1")
local Background2 = GamePopup:WaitForChild("Background2")
local Text1 = script.Parent:WaitForChild("Text1")
local Text2 = script.Parent:WaitForChild("Text2")

-- CreditsPopUp
local CreditsPopup = script.Parent:WaitForChild("CreditsPopup")
local CreditsTitle = CreditsPopup:WaitForChild("Credits Title")
local PoweredPilots = CreditsPopup:WaitForChild("PoweredPilots")
local AlvinBlox = CreditsPopup:WaitForChild("AlvinBlox")
local CyberCreator = CreditsPopup:WaitForChild("CyberCreator")
local FutureNoob = CreditsPopup:WaitForChild("FutureNoob")
local RoDevs = CreditsPopup:WaitForChild("RoDevs")

local Cam = workspace.CurrentCamera
local CamPoints = workspace:WaitForChild("CameraPoints")

-- Tweens
local SlideOutSide = Tween:Create(Sidebar, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)})
local SlideInSide = Tween:Create(Sidebar, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(-0.3, 0, 0, 0)})

local HoverOverPlayBtn = Tween:Create(PlayBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0.1, 0)})
local LeavePlayBtn = Tween:Create(PlayBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0.09, 0)})

local HoverOverCreditsBtn = Tween:Create(CreditsBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0.1, 0)})
local LeaveCreditsBtn = Tween:Create(CreditsBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 0.09, 0)})

local GamePopin = Tween:Create(GamePopup, TweenInfo.new(0.3, Enum.EasingStyle.Sine), {Transparency = 0})

local Background1Popin = Tween:Create(Background1, TweenInfo.new(0.3), {ImageTransparency = 0.5})
local Background1Popout = Tween:Create(Background1, TweenInfo.new(0.3), {ImageTransparency = 1})
local Background2Popin = Tween:Create(Background2, TweenInfo.new(0.3), {ImageTransparency = 0.5})
local Background2Popout = Tween:Create(Background2, TweenInfo.new(0.3), {ImageTransparency = 1})

local Text1In = Tween:Create(Text1, TweenInfo.new(0.3), {TextTransparency = 0})
local Text2In = Tween:Create(Text2, TweenInfo.new(0.3), {TextTransparency = 0})

local CreditsTitle = Tween:Create(game.StarterGui.Menu.CreditsPopup["RoDevs"], TweenInfo.new(0.3), {BackgroundTransparency = 0})
local PoweredPilots = Tween:Create(game.StarterGui.Menu.CreditsPopup["RoDevs"], TweenInfo.new(0.3), {BackgroundTransparency = 0})
local Alvinblox = Tween:Create(game.StarterGui.Menu.CreditsPopup["AlvinBlox"], TweenInfo.new(0.3), {BackgroundTransparency = 0})
local CyberCreator = Tween:Create(game.StarterGui.Menu.CreditsPopup["CyberCreator"], TweenInfo.new(0.3), {BackgroundTransparency = 0})
local FutureNoob = Tween:Create(game.StarterGui.Menu.CreditsPopup["FutureNoob"], TweenInfo.new(0.3), {BackgroundTransparency = 0})
local RoDevs = Tween:Create(game.StarterGui.Menu.CreditsPopup["RoDevs"], TweenInfo.new(0.3), {BackgroundTransparency = 0})

local CreditsTitle = Tween:Create(game.StarterGui.Menu.CreditsPopup["Credits Title"], TweenInfo.new(0.3), {TextTransparency = 0})
local PoweredPilots = Tween:Create(game.StarterGui.Menu.CreditsPopup["PoweredPilots"], TweenInfo.new(0.3), {TextTransparency = 0})
local Alvinblox = Tween:Create(game.StarterGui.Menu.CreditsPopup["AlvinBlox"], TweenInfo.new(0.3), {TextTransparency = 0})
local CyberCreator = Tween:Create(game.StarterGui.Menu.CreditsPopup["CyberCreator"], TweenInfo.new(0.3), {TextTransparency = 0})
local FutureNoob = Tween:Create(game.StarterGui.Menu.CreditsPopup["FutureNoob"], TweenInfo.new(0.3), {TextTransparency = 0})
local RoDevs = Tween:Create(game.StarterGui.Menu.CreditsPopup["RoDevs"], TweenInfo.new(0.3), {TextTransparency = 0})


local SlowRepeat = Tween:Create(GamePopup, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0.45, 0, 0.5, 0)})

local CredsPopin = Tween:Create(CreditsPopup, TweenInfo.new(0.3, Enum.EasingStyle.Sine), {Transparency = 0})
local CredsPopout = Tween:Create(CreditsPopup, TweenInfo.new(0.3, Enum.EasingStyle.Sine), {Transparency = 1})

local CredsOpen = false
local FT = 0

SlideOutSide:Play() -- Play Tween

local function TeleportToGame(GameID)
	TeleportService:Teleport(GameID)
	warn("Teleported!")
end

-- PlayBtn
PlayBtn.MouseEnter:Connect(function()
	HoverOverPlayBtn:Play()
end)
PlayBtn.MouseLeave:Connect(function()
	LeavePlayBtn:Play()
end)
PlayBtn.MouseButton1Click:Connect(function()
	
	GamePopin:Play()
	SlideInSide:Play()
	if CredsOpen then
		CredsPopout:Play()
	end
	wait(0.5)
	Sidebar:Destroy()
	CreditsPopup:Destroy()
	
	-- im aware that this wont teleport me to a game
	
	local Success, Error = pcall(function()
		TeleportToGame(0)
	end)
	
	repeat
		FT = FT + 1
		wait(5)
		Success, Error = pcall(function()
			TeleportToGame(0)
		end)
	until Success or FT == 1
	
	if FT == 5 then
		Players.LocalPlayer:Kick("Problem Joining Game, Please Try Again!")
	elseif FT ~= 5 and Success then
		warn("YES!")
	end
	
	-- random decals i found
	
	local Images = {4373505290, 2483112, 28891467, 90567188}
	local Quotes = {"test1", "test2", "test3", "test4", "test5", "test6", "test7", "test8", "test9", "test10"}
	
	Background1Popin:Play()
	Text1In:Play()
	Text2In:Play()
	
	local QuoteLoop = coroutine.wrap(function()
		while true do
			for i,v in ipairs(Quotes) do
				wait(4)
				Text2.Text = v
				print(v)
			end
		end
	end)()
	local PicLoop = coroutine.wrap(function()
		while true do
			for i,v in ipairs(Images) do
				SlowRepeat:Play()
				if Background1.ImageTransparency == 0.5 then
					Background2.Image = "rbxassetid://"..v
				elseif Background2.ImageTransparency == 0.5 then
					Background1.Image = "rbxassetid://"..v
				end
				wait(5)
				GamePopup.Position = UDim2.new(0.55, 0, 0.5, 0)
				if Background1.ImageTransparency == 0.5 then
					Background2Popin:Play()
					Background1Popout:Play()
					wait(0.3)
				elseif Background2.ImageTransparency == 0.5 then
					Background1Popin:Play()
					Background2Popout:Play()
					wait(0.3)
				end
				print(v)
			end
		end
	end)()
end)

-- CreditBtn
CreditsBtn.MouseEnter:Connect(function()
	HoverOverCreditsBtn:Play()
end)
CreditsBtn.MouseLeave:Connect(function()
	LeaveCreditsBtn:Play()
end)
CreditsBtn.MouseButton1Click:Connect(function()
	if not CredsOpen then
		CredsOpen = true
		CredsPopin:Play()
		wait(0.3)
		for i,v in pairs(CreditsPopup:GetDescendants()) do
			if v:IsA("TextLabel") then
				v.Visible = true
			end
		end
	else
		for i,v in pairs(CreditsPopup:GetDescendants()) do
			if v:IsA("TextLabel") then
				v.Visible = false
			end
		end
		CredsPopout:Play()
		CredsOpen = false
		wait(0.3)
	end
end)

-- CameraTweening
local function TweenCameraPos(Point, Speed)
	Tween:Create(Cam, TweenInfo.new(Speed, Enum.EasingStyle.Linear), {CFrame = Point.CFrame}):Play()
end

Cam.CameraType = Enum.CameraType.Scriptable
Cam.FieldOfView = 50

while true do
	Cam.CFrame = CamPoints:FindFirstChild("1").CFrame
	TweenCameraPos(CamPoints:FindFirstChild("2"), 4)
	wait(4)
	Cam.CFrame = CamPoints:FindFirstChild("3").CFrame
	TweenCameraPos(CamPoints:FindFirstChild("4"), 4)
	wait(4)
	Cam.CFrame = CamPoints:FindFirstChild("5").CFrame
	TweenCameraPos(CamPoints:FindFirstChild("6"), 4)
	wait(4)
	Cam.CFrame = CamPoints:FindFirstChild("7").CFrame
	TweenCameraPos(CamPoints:FindFirstChild("8"), 4)
	wait(4)
end

people in credits taught me roblox studio, and rodevs disco just helps me like the devfourm

local CreditsTitle = Tween:Create(game.StarterGui.Menu.CreditsPopup["Credits Title"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})
local PoweredPilots = Tween:Create(game.StarterGui.Menu.CreditsPopup["PoweredPilots"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})
local Alvinblox = Tween:Create(game.StarterGui.Menu.CreditsPopup["AlvinBlox"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})
local CyberCreator = Tween:Create(game.StarterGui.Menu.CreditsPopup["CyberCreator"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})
local FutureNoob = Tween:Create(game.StarterGui.Menu.CreditsPopup["FutureNoob"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})
local RoDevs = Tween:Create(game.StarterGui.Menu.CreditsPopup["RoDevs"], TweenInfo.new(0.3), {TextTransparency = 0, BackgroundTransparency = 0})

You have this twice. I presume this is a copy paste mistake?

EDIT: Ah nvm. Lemme fix up this code for you.

EDIT 2: I’ve added BackgroundTransparency = 0 to the property table. You can add multiple property changes to the table. You’re making this too complex by making a new tween, but using the same variable name, resulting in destroying the old tween.

That’ll fix that issue if you understand my reasoning. Use new variables like: Alvinblox, Alvinblox_Text, Alvinblox_Background, etc, or fuse them just in one tween and call it Alvinblox_Tween.

I can’t seem to find the line where this error appears:

One changes the transparency of the GUI’s background, and the other changes the transparency of the text of the textlabel.

I never knew that you could fuse multiple tweens, thanks for a little optimization.
Anyways, the same old “white gui box error thingey” is still occouring.

And, is it too late to say I forgot adding another script? anyways, here:

Screenshot 2021-05-13 143814
^ layout of my game’s screengui(ignore fps counter)

the script I gave you is called “MenuMain,” whereas “SetGUISettings” is now below:

-- Services
local SG = game:GetService("StarterGui")
local SP = game:GetService("StarterPlayer")
local UIS = game:GetService("UserInputService")
local PLRS = game:GetService("Players")
local FT = 0

local function SetGUI()
	SG:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
	SG:SetCore("ResetButtonCallback", false)
	UIS.ModalEnabled = true
	print("Finished Setting GUI")
end

local Success, Error = pcall(SetGUI)

repeat
	FT = FT + 1
	wait(2)
	Success, Error = pcall(SetGUI)
until FT == 5 or Success

if FT == 5 then
	PLRS.LocalPlayer:Kick()
elseif FT ~= 5 and Success then
	warn("Starting The Main Menu...")
end

Can you point me which line it is?

this line @lin27, the same thing happens. no clue why, no erros in my output as of right now.

What’s the name of the white gui?

EDIT: Got it, “CreditsPopup”. But uhmmm, Transparency isn’t the right property. It’s BackgroundTransparency I believe.

1 Like

alright. ill keep that in mind.