Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Put this LocalScript inside TextButton --
- local Gui = script.Parent.Parent.Background
- local btn = script.Parent
- btn.MouseButton1Click:Connect(function()
- Gui.Visible = not Gui.Visible
- if Gui.Visible == true then
- btn.Text = "<" -- This will change the text when opened --
- elseif Gui.Visible == false then
- btn.Text = ">"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement