Hello.
I am currently trying to make a start menu and whenever the start the button is clicked it should fade out all of the guis. Heres what I have so far but at the moment it's not working.
local LeftFrameBG = {
script.parent.LeftFrame;
script.parent.LeftFrame.Customize;
}
local LeftFrameText = {
script.Parent.LeftFrame.Doubloons;
script.Parent.LeftFrame.Level;
script.Parent.LeftFrame.Username;
}
local RightFrame = script.Parent.RightFrame
local function fadeOutBG()
for i = LeftFrameBG.BackgroundTransparency, 1, .1 do
wait(.1)
LeftFrameBG.TextTransparency = i
end
end
script.Parent.StartButton.MouseButton1Click:connect(function ()
fadeOutBG()
end)

3 comments
I think you should do "-.1" instead of ".1", haven't coded in a while but that seems right to me
That doenst seem to do it for me. where should this script be? In the gui or under the start button?
It depends where you want it to be, and where the script locates the GUI you want to change.