Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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()

script.Parent.Parent.Visible = false

for i = 1, 0, -0.1 do

    script.Parent.Parent.Parent.Music.Volume = i
    wait(0.07)
end

script.Parent.Parent.Parent.Music:Stop()

end

script.Parent.MouseButton1Click:Connect(onClick) script.Parent.PlayButton.MouseButton1Click:Connect(onClick)

Answer this question