Problems with a Fading GUI Playbutton

I made a Main Menu Screen for my upcoming game, and I was scripting the play button like this, however it doesn’t work. Can someone point out the issue for me? Any help appreciated. Thanks.

local TweenService = game:GetService('TweenService')
local Frame = script.Parent.Parent.Parent

script.Parent.MouseButton1Click:Connect(function()
	TweenService:Create(
		Frame,
		TweenInfo.new(2),
		{BackgroundTransparency = 1}
	):Play()
end)

image
Image of the setup.

You have to tween each label separately from the parent (Edit: i mean frame)

you could try to add a easing style maybe it would work?

You’ll need to do what @primitivedd said, each ui element needs to be tweened indevidually, the code you provided only tweens the background, so nothing will change.

You can use a pairs() loop to get every descendant of the frame, and tween it if its a ui element.

2 Likes