Dully

open/close script

Jul 31st, 2019
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Open Button Script:
  2. script.Parent.MouseButton1Click:Connect(function()
  3. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true
  4. end)
  5.  
  6. Close Button Script:
  7. script.Parent.MouseButton1Click:Connect(function()
  8. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false
  9. end)
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. if more then 1 gui ill give you an example if there is more then 1 then change the 2nd one to "ScreenGui2" and in the script change "ScreenGui" to "ScreenGui2"
Advertisement
Add Comment
Please, Sign In to add comment