Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Admin Commands UI Script
- local Plr = game:GetService("Players").LocalPlayer
- local function Vis(Bar)
- if Bar.BackgroundTransparency == 1 then
- for i = 1, 0, -0.1 do
- Bar.BackgroundTransparency = 0.3
- wait()
- print(i)
- end
- else
- print("Already open.")
- end
- end
- local function Invis(Bar)
- if Bar.BackgroundTransparency == 0.3 then
- for i = 1,0, -0.1 do
- Bar.BackgroundTransparency = 1
- wait()
- print(i)
- end
- else
- Bar.BackgroundTransparency = 1
- end
- end
- Plr.Chatted:Connect(function(text)
- if Plr:GetRankInGroup(3890582) >= 8 or Plr:GetRankInGroup(3423188) >= 90 then
- if text:lower() == ":cmds" then
- for i, v in next, script.Parent:GetChildren() do
- if v:IsA("TextLabel") then
- Vis(v)
- end
- end
- elseif
- text:lower() == ":close" then
- for i, v in next, script.Parent:GetChildren() do
- if v:IsA("TextLabel") then
- Invis(v)
- end
- end
- end
- else return end
- end)
Advertisement
Add Comment
Please, Sign In to add comment