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)

2 comments
Please help
Use TweenService. https://developer.roblox.com/en-us/api-reference/class/TweenService