Advertisement
MisterH_t

Menu Script | LocalScript

Mar 10th, 2023
1,883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | Gaming | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local ui = plr.PlayerGui:WaitForChild("---") -- Coloque o nome do ScreenGui;
  3.  
  4. 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);
  5. local play = bkg.--- -- Coloque o nome do Botão que inicia o jogo;
  6.  
  7. play.MouseButton1Down:Connect(function()
  8.     play:TweenPosition(UDim2.new(A posição do clique em baixo),Enum.EasingDirection.In,Enum.EasingStyle.Linear,.1)
  9. end)
  10.  
  11. play.MouseButton1Up:Connect(function()
  12.     play:TweenPosition(UDim2.new(A posição do clique em cima),Enum.EasingDirection.In,Enum.EasingStyle.Linear,.1)
  13.     wait(.1)
  14.     ui:Destroy()
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement