Advertisement
Aquarius_Raverus

Proof of Being a Developer

Jul 12th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. --// Admin Commands UI Script
  2.  
  3. local Plr = game:GetService("Players").LocalPlayer
  4. local function Vis(Bar)
  5.     if Bar.BackgroundTransparency == 1 then
  6.         for i = 1, 0, -0.1 do
  7.             Bar.BackgroundTransparency = 0.3
  8.             wait()
  9.             print(i)
  10.         end
  11.     else
  12.         print("Already open.")
  13.         end
  14.     end
  15.  
  16.  
  17. local function Invis(Bar)
  18.     if Bar.BackgroundTransparency == 0.3 then
  19.         for i = 1,0, -0.1 do
  20.             Bar.BackgroundTransparency = 1
  21.             wait()
  22.             print(i)
  23.         end
  24.     else
  25.         Bar.BackgroundTransparency = 1
  26.         end
  27.     end
  28.  
  29.  
  30. Plr.Chatted:Connect(function(text)
  31.     if Plr:GetRankInGroup(3890582) >= 8 or Plr:GetRankInGroup(3423188) >= 90 then
  32.        
  33.         if text:lower() == ":cmds" then
  34.             for i, v in next, script.Parent:GetChildren() do
  35.                 if v:IsA("TextLabel") then
  36.                     Vis(v)
  37.                 end
  38.             end
  39.         elseif
  40.             text:lower() == ":close" then
  41.                 for i, v in next, script.Parent:GetChildren() do
  42.                     if v:IsA("TextLabel") then
  43.                         Invis(v)
  44.                    end
  45.             end
  46.         end
  47.     else return end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement