Advertisement
OnFireRobloxScriptin

Exit Button Script

Aug 10th, 2024 (edited)
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --//Variable
  2. local exitbutton = script.Parent --Variable for exit button
  3. local frame = exitbutton.Parent --Variable for your frame
  4.  
  5. --//Close Frame
  6. exitbutton.MouseButton1Click:Connect(function() --When the exit button is clicked
  7.     frame.Visible = false --Make the frame invisible
  8. end)
  9.  
  10. --//In order to work, make sure this script is under your exit button
  11. --//Then make sure you exit button is under the frame you want to close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement