Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Thanks for using this script
- Want to know how to use this and script explanation?
- Check out my video here: https://youtu.be/aCs3f-nVWrE
- ]]
- local frame = script.Parent.Parent.Frame --Here we get the frame that we will give the ability to open/close. Don't change this line!
- script.Parent.MouseButton1Click:Connect(function() --Function which runs when the button is clicked
- if frame.Visible == false then --Here we check if the frame is visible if it's not then..
- frame.Visible = true --then we make frame visible
- else --Otherwise.. (so if the frame was already visible then..)
- frame.Visible = false --We will make frame invisible
- end --We end the if-statement here
- end) --We end the function here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement