Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local ui = plr.PlayerGui:WaitForChild("---") -- Coloque o nome do ScreenGui;
- local bkg = ui.--- -- Coloque o nome do Frame de Fundo (Se não houver pode apenas usar a variável de play com ui.Play);
- local play = bkg.--- -- Coloque o nome do Botão que inicia o jogo;
- play.MouseButton1Down:Connect(function()
- play:TweenPosition(UDim2.new(A posição do clique em baixo),Enum.EasingDirection.In,Enum.EasingStyle.Linear,.1)
- end)
- play.MouseButton1Up:Connect(function()
- play:TweenPosition(UDim2.new(A posição do clique em cima),Enum.EasingDirection.In,Enum.EasingStyle.Linear,.1)
- wait(.1)
- ui:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement