Hello i want to make a gui fade away into another gui.
This is the code:
local TweenService = game:GetService("TweenService")
local gui = script.Parent.Parent
wait(30)
gui.Enabled = true
wait(5)
local tween = game.TweenService:Create(gui.ProductionsFrame, TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {["BackgroundTransparency"]= 0} )
tween:Play()
tween.Completed:wait()
This is the workspace:
And this is the gui:
1 Like
If it doesn’t work, try changing this
To this
{BackgroundTransparency = 0}
1 Like
Still doesnt work for some reason…
Are there any errors in output?
1 Like
Let me check real quick.
(30 aa)
Is the Frame’s “Visible” property set to true?
1 Like
Your ScreenGui has to be in Client’s PlayerGui. Make sure it’s there because it looks like it’s in a folder.
1 Like
Its in starter gui.
So thats not it
Additionally, can you provide a .rbxm file of the ScreenGui?
1 Like
Whats a uhh .rbxm file is it like the game file because this is the main game im working on.
Maybe try removing this part of the TweenInfo?
1 Like
Isnt that a vital part of TweenInfo? It needs easing style and direction for it to work no?
Right click the ScreenGui and click the button “Save to File…” and drag the file here.
Pretty sure those aren’t needed.
1 Like
But wouldnt i need them anyways for the fade out effect? How would the script know what type of easing style i need for this type of effect?
This is the part changing the transparency.
Pretty sure the Enum stuff isn’t really needed.
1 Like
Still didnt work even after removing the Enums
Can you paste the updated script here?
1 Like
local TweenService = game:GetService("TweenService")
local gui = script.Parent.Parent
wait(30)
gui.Enabled = true
wait(5)
local tween = game.TweenService:Create(gui.ProductionsFrame, TweenInfo.new(1.5), {BackgroundTransparency = 0} )
tween:Play()
tween.Completed:wait()