Advertisement
XsanityV

gui tutorial

Aug 26th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. to put the script in the button
  2. script.Parent.MouseButton1Click:Connect(function()
  3. --scripthere--
  4. end)
  5. to make it close
  6. script.Parent.MouseButton1Click:Connect(function()
  7. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false
  8. end)
  9. to make it open
  10. script.Parent.MouseButton1Click:Connect(function()
  11. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement