krLuCiEzkr

Close Gui Script

Oct 31st, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. print("Close button loaded")
  2.  
  3. button = script.Parent
  4. window = button.Parent
  5.  
  6. function onClicked(GUI)
  7. window:remove()
  8. end
  9. script.Parent.MouseButton1Click:connect(onClicked)
Add Comment
Please, Sign In to add comment