How can i make the menu gui slide up and then become invisible?
Asked by
4 years ago Edited 4 years ago
Hello! I'm working on a game and i have made a menu gui when you enter the game , but when i press play it just makes it unvisible , as i made the script , but i want it to slide up.
How can i do that?
It also stops the background music when pressing play.
My code :
script.Parent.Parent.Parent.Music:Play()
local function onClick()
1 | script.Parent.Parent.Visible = false |
5 | script.Parent.Parent.Parent.Music.Volume = i |
9 | script.Parent.Parent.Parent.Music:Stop() |
end
script.Parent.MouseButton1Click:Connect(onClick)
script.Parent.PlayButton.MouseButton1Click:Connect(onClick)