Malefisapiens

Untitled

Jul 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.57 KB | None | 0 0
  1. --Scripted by MaleficusFreud.
  2. --Say !text to enable it. Do !text again to disable it. Saying !colortext enables random color, the same rule applies.
  3.  
  4. Administrator = "DominusOmni"
  5. Prefix = "!"
  6. MetaClearance = true
  7. function Authorization()
  8. TextClearance = MetaClearance
  9. TextColorClearance = MetaClearance
  10. TextColorToggle = MetaClearance
  11. end
  12. Authorization()
  13.         for i, v in pairs(game.Players:GetPlayers()) do
  14.     if v.Character.Name == Administrator then
  15.         v.CharacterAdded:connect(function(character)
  16.             Authorization()
  17.         end)
  18.         end
  19.         end
  20.     for i, v in pairs(game.Players:GetPlayers()) do
  21.     if v.Character.Name == Administrator then
  22.     v.Chatted:connect(function(msg)
  23.         msg = msg:lower()
  24.         if msg:find(Prefix .. "text") and TextClearance == true then  
  25.         wait()                                                     
  26.         TextClearance = false
  27. space = game.Workspace
  28.  
  29. Instance.new("BillboardGui", space[Administrator].Head)
  30. space[Administrator].Head.BillboardGui.Name = "NameDomain"
  31. Instance.new("TextBox", space[Administrator].Head.NameDomain)
  32.  
  33. NameTag1 = space[Administrator].Head.NameDomain
  34. NameTag2 = space[Administrator].Head.NameDomain.TextBox
  35.  
  36.     NameTag1.ExtentsOffsetWorldSpace = Vector3.new(0, 3, 0)
  37.     NameTag1.Size = UDim2.new(0, 200, 0, 50)
  38.     NameTag1.LightInfluence = 0
  39.    
  40.     NameTag2.BackgroundTransparency = 1
  41.     NameTag2.Size = UDim2.new(0, 200, 0, 50)
  42.     NameTag2.Font = 14
  43.     NameTag2.Text = space[Administrator].Name
  44.     NameTag2.TextColor3 = Color3.new(118, 0, 0)
  45.     NameTag2.TextSize = 25
  46.     NameTag2.TextStrokeColor3 = Color3.new(0,0,0)
  47.     NameTag2.TextStrokeTransparency = 0
  48.    
  49.     end
  50.     end)
  51.     end
  52.     end
  53.    
  54.         for i, v in pairs(game.Players:GetPlayers()) do
  55.     if v.Character.Name == Administrator then
  56.     v.Chatted:connect(function(msg)
  57.     msg = msg:lower()
  58.         if msg:find(Prefix .. "text") and TextClearance == false then
  59.             wait()
  60.             TextClearance = MetaClearance
  61.         NameTag1:Destroy()
  62.     end
  63.     end)
  64.     end
  65.     end
  66.    
  67.     for i, v in pairs(game.Players:GetPlayers()) do
  68.     if v.Character.Name == Administrator then
  69.         v.Chatted:connect(function(msg)
  70.         if game.Workspace[Administrator].Head:FindFirstChild("NameDomain") then
  71.             if msg ~= nil then
  72.                 space = game.Workspace
  73.                 Administrator = Administrator
  74.                 NameTag1 = space[Administrator].Head.NameDomain
  75.                 NameTag2 = space[Administrator].Head.NameDomain.TextBox
  76.                 for s = 1, string.len(msg) do
  77.                 NameTag2.Text = string.sub(msg, 1, s) wait(0.05)
  78.             end
  79.             end
  80.         end
  81.         end)
  82.     end
  83.     end
  84.    
  85. ------------------------[ Custom Chat Color ]------------------------
  86.  
  87.         for i, v in pairs(game.Players:GetPlayers()) do
  88.     if v.Character.Name == Administrator then
  89.     v.Chatted:connect(function(msg)
  90.         if game.Workspace[Administrator].Head:FindFirstChild("NameDomain") then
  91.     msg = msg:lower()
  92.         if msg:find(Prefix .. "colortext") and TextColorClearance == true  and TextColorToggle == true then
  93.             wait()
  94.             TextColorToggle = false
  95.     repeat
  96.         space = game.Workspace
  97.         Administrator = Administrator  
  98.         NameTag1 = space[Administrator].Head.NameDomain
  99.         NameTag2 = space[Administrator].Head.NameDomain.TextBox
  100.         wait(0.1)
  101.         NameTag2.TextColor3 = Color3.new(math.random(),math.random(),math.random())
  102.         msg = msg:lower()
  103.     until TextColorClearance == false
  104.     wait()
  105.     TextColorClearance = MetaClearance
  106.         end
  107.         end
  108.         end)
  109.     end
  110.     end
  111.        
  112.         for i, v in pairs(game.Players:GetPlayers()) do
  113.             if v.Character.Name == Administrator then
  114.                 v.Chatted:connect(function(msg)
  115.                         msg = msg:lower()
  116.                     if msg:find(Prefix .. "colortext") and TextColorToggle == false then
  117.                         wait()
  118.                         TextColorToggle = true
  119.                     TextColorClearance = false
  120.                     end
  121.                 end)
  122.             end
  123.         end
Advertisement
Add Comment
Please, Sign In to add comment