Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Button = script.Parent
- Frame = script.Parent.Parent.THENAMEOFTHEFRAMETHATYOUWANTTOOPENANDCLOSE
- function onClick()
- if Frame.Visible == false then
- Frame.Visible = true
- elseif Frame.Visible == true then
- Frame.Visible = false
- end
- end
- Button.MouseButton1Click:connect(onClick)
Advertisement
Add Comment
Please, Sign In to add comment