Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UI = script.Parent.Parent.Parent
- local isVisible = true
- script.Parent.MouseButton1Click:Connect(function()
- isVisible = not isVisible
- for _, child in ipairs(UI:GetChildren()) do
- if child:IsA("ScreenGui") and child.Name ~= "TouchGui" and child.Name ~= "PlayerGui" then
- child.Enabled = isVisible
- script.Parent.Parent.Enabled = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement