Player = game.Players.LocalPlayer
Menu = script.Parent
Play = Menu.About
About = Menu.About
HasPressedPlay = false
Info = script.Parent.Info
Minimize = Info.Minimize
function MouseEnterPlayButton()
Play.FontSize ="Size36"
Play.BackgroundColor3 = Color3.new(0.35, 1, 1)
Play.Size = UDim2.new(0.45, 0, 0.225, 0)
end
function MouseLeftPlayButton()
--85, 255, 255
About.FontSize ="Size24"
About.BackgroundColor3 = Color3.new(0.1, 0.647, 0.7)
About.Size = UDim2.new(0.45, 0, 0.225, 0)
end
function MouseEnterAboutButton()
Play.FontSize ="Size36"
Play.BackgroundColor3 = Color3.new(0.35, 1, 1)
Play.Size = UDim2.new(0.45, 0, 0.225, 0)
end
function MouseLeftAboutButton()
About.FontSize ="Size24"
About.BackgroundColor3 = Color3.new(0.54, 0.62, 0.7)
About.Size = UDim2.new(0.3, 0, 0.15, 0)
end
function PlayGame()
if HasPressedPlay == false then
for GuiMove = 1, 30 do
if GuiMove <= 20 then
Play.Position = Play.Position +UDim2.new(0.05, 0, 0, 0)
end
if GuiMove >= 10 then
About.Position = About.Position +UDim2.new(0.05, 0, 0, 0)
end
wait()
end
Menu:remove()
end
end
function MinimizeInfo()
Info.Visible = false
end
function InfoPopup()
if Info.Visible == false then
Info.Visible = true
else
Intro.Visible = false
end
About.MouseButtonDown:connect(InfoPopup)
Minimize.MouseButton1Down:connect(MinimizeInfo)
About.MouseLeave:connect(MouseLeftAboutButton)
About.MouseEnter:connect(MouseEnterAboutButton)
Play.MouseLeave:connect(MouseLeftPlayButton)
Play.MouseLeave:connect(MouseEnterPlayButton)
Play.MouseButton1Down:connect(PlayGame)
COMMUNITY QUESTION
Could someone tell me what I did wrong in making this GUI for my game?
1 answer
Line 52: You should always add an end for every 'if' statement. Other than that I see no error. Of course, I could be wrong.
function InfoPopup()
if Info.Visible == false then
Info.Visible = true
else
Intro.Visible = false
end
end
If you have any other questions, feel free to inbox me through ROBLOX.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Is there output?