Player = game.Players.LocalPlayer
Menu = script.Parent
Play = Menu.Play
About = Menu.About
HasPressedPlay = false
function MouseEnterPlayButton()
Play.FontSize = "Size36"
Play.BackgroundColor3 = Color3.new(0.54,0.62,0.7)
Play.Size = UDim2.new(0.45,0,0.225,0)
end
function MouseLeftPlayButton()
Play.FontSize = "Size24"
Play.BackgroundColor3 = Color3.new(0.54,0.62,0.7)
Play.Size = UDim2.new(0.3,0,0.1,0)
end
function MouseEnterAboutButton()
About.FontSize = "Size36"
About.BackgroundColor3 = Color3.new(0.54,0.62,0.7)
About.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.1,0)
end
function PlayGame()
if HasPressedPlay == false then
for GuiMove = 1, 30 do
if Guimove <= 20 then
Play.Position = UDim2.new(0.05,0,0,0)
end
if GuiMove >= 10 then
About.Position = UDim2.new(0.05,0,0,0)
end
wait()
end
Menu:remove()
end
end
About.MouseLeave:connect(MouseLeftAboutButton)
About.MouseEnter:connect(MouseEnterAboutButton)
Play.MouseLeave:connect(MouseLeftPlayButton)
Play.MouseEnter:connect(MouseEnterPlayButton)
Play.MouseButton1Down:connect(PlayGame)
|