SHARE
TWEET

[Draconic/Atom] Chat Log Script [Lua]

Vzurxy Nov 25th, 2018 (edited) 768 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ ]]--
  2.  
  3. print("Made by Draconic#0995")
  4.  
  5. -- Check RSR true if you have ProtoSmasher.
  6.  
  7. local RSR = false
  8.  
  9. local StartUpMessage = "Welcome to Chat Log! | Made by Draconic#0995"
  10.  
  11. local Parent
  12. if game:GetService("CoreGui"):FindFirstChild("RobloxGui") then
  13.     Parent = game:GetService("CoreGui").RobloxGui
  14. else
  15.     Parent = game:GetService("CoreGui")
  16. end
  17.  
  18. local Minimized = false
  19. local Logging = true
  20. local OutputPos = 0
  21. local ScrollingDown = false
  22.  
  23. local ChatLog = Instance.new("ScreenGui")
  24. local Frame = Instance.new("Frame")
  25. local LogPanel = Instance.new("ScrollingFrame")
  26. local TextLabel = Instance.new("TextLabel")
  27. local ChatLogLabel = Instance.new("TextLabel")
  28. local Exit = Instance.new("TextButton")
  29. local Minimize = Instance.new("TextButton")
  30. local Status = Instance.new("TextButton")
  31. local Clear = Instance.new("TextButton")
  32. local FrameHolder = Instance.new("Frame")
  33. local Loading = Instance.new("ImageLabel")
  34.  
  35. ChatLog.Name = "ChatLog"
  36. ChatLog.Parent = game.CoreGui
  37.  
  38. if RSR then
  39.     print("Disabled")
  40. else
  41.     ChatLog.ResetOnSpawn = false
  42.     print("Enabled")
  43. end
  44.  
  45. Frame.Parent = ChatLog
  46. Frame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  47. Frame.BackgroundTransparency = 0.20000000298023
  48. Frame.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  49. Frame.Position = UDim2.new(0, 0, 0, 0)
  50. Frame.Size = UDim2.new(0, 463, 0, 24)
  51. Frame.Visible = false
  52. Frame.Active = false
  53.  
  54. LogPanel.Name = "LogPanel"
  55. LogPanel.Parent = Frame
  56. LogPanel.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  57. LogPanel.BackgroundTransparency = 0.20000000298023
  58. LogPanel.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  59. LogPanel.Position = UDim2.new(0, 0, 1, 0)
  60. LogPanel.Size = UDim2.new(0, 463, 0, 214)
  61. LogPanel.CanvasSize = UDim2.new(2, 0, 100, 0)
  62.  
  63. TextLabel.Parent = LogPanel
  64. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  65. TextLabel.BackgroundTransparency = 1
  66. TextLabel.Position = UDim2.new(0.0939524844, 0, 0.00291666668, 0)
  67. TextLabel.Size = UDim2.new(0, 301, 0, 11)
  68. TextLabel.Font = Enum.Font.SourceSans
  69. TextLabel.Text = StartUpMessage
  70. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  71. TextLabel.TextSize = 15
  72. TextLabel.TextWrapped = true
  73.  
  74. ChatLogLabel.Name = "ChatLogLabel"
  75. ChatLogLabel.Parent = Frame
  76. ChatLogLabel.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  77. ChatLogLabel.BackgroundTransparency = 1
  78. ChatLogLabel.BorderSizePixel = 0
  79. ChatLogLabel.Position = UDim2.new(-0.00180099811, 0, -0.0416666269, 0)
  80. ChatLogLabel.Size = UDim2.new(0, 463, 0, 23)
  81. ChatLogLabel.Font = Enum.Font.SourceSansBold
  82. ChatLogLabel.Text = "Chat Log"
  83. ChatLogLabel.TextColor3 = Color3.new(1, 1, 1)
  84. ChatLogLabel.TextSize = 20
  85. ChatLogLabel.TextWrapped = true
  86.  
  87. Exit.Name = "Exit"
  88. Exit.Parent = Frame
  89. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  90. Exit.BackgroundTransparency = 1
  91. Exit.Position = UDim2.new(0.93929702, 0, 0, 0)
  92. Exit.Size = UDim2.new(0, 19, 0, 21)
  93. Exit.Font = Enum.Font.Arcade
  94. Exit.Text = "X"
  95. Exit.TextColor3 = Color3.new(1, 1, 1)
  96. Exit.TextSize = 16
  97. Exit.TextWrapped = true
  98.  
  99. Exit.MouseButton1Down:Connect(function()
  100.     LogPanel:TweenPosition(UDim2.new(-1, 0, 2, 0), "InOut", "Sine", 1, false, nil)
  101.     wait(0.5)
  102.     ChatLog:Destroy()
  103. end)
  104.  
  105. Minimize.Name = "Minimize"
  106. Minimize.Parent = Frame
  107. Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
  108. Minimize.BackgroundTransparency = 1
  109. Minimize.Position = UDim2.new(0.87859416, 0, 0, 0)
  110. Minimize.Size = UDim2.new(0, 19, 0, 21)
  111. Minimize.Font = Enum.Font.Arcade
  112. Minimize.Text = "_"
  113. Minimize.TextColor3 = Color3.new(1, 1, 1)
  114. Minimize.TextSize = 16
  115. Minimize.TextWrapped = true
  116.  
  117. Minimize.MouseButton1Down:Connect(function()
  118.     if Minimized then
  119.         LogPanel.Visible = true
  120.         wait(0.03)
  121.         LogPanel:TweenSize(UDim2.new(0, 463, 0, 214), "InOut", "Sine", 0.5, false, nil)
  122.     else
  123.         LogPanel.Visible = false
  124.         wait(0.03)
  125.         LogPanel:TweenSize(UDim2.new(0, 463, 0, 1), "InOut", "Sine", 0.5, false, nil)
  126.     end
  127.     Minimized = not Minimized
  128. end)
  129.  
  130. Status.Name = "Status"
  131. Status.Parent = Frame
  132. Status.BackgroundColor3 = Color3.new(1, 1, 1)
  133. Status.BackgroundTransparency = 1
  134. Status.Position = UDim2.new(0, 0, 0.0416666679, 0)
  135. Status.Size = UDim2.new(0, 54, 0, 20)
  136. Status.Font = Enum.Font.Highway
  137. Status.Text = "Online"
  138. Status.TextColor3 = Color3.new(0.301961, 0.988235, 0.0509804)
  139. Status.TextSize = 14
  140.  
  141. Status.MouseButton1Down:Connect(function()
  142.     Logging = not Logging
  143.     if Logging then
  144.         Status.Text = "Online"
  145.         Status.TextColor3 = Color3.new(0.301961, 0.988235, 0.0509804)
  146.     else
  147.         Status.Text = "Offline"
  148.         Status.TextColor3 = Color3.new(0.988235, 0.164706, 0)
  149.     end
  150. end)
  151.  
  152. function Output(Player, Message)
  153.     if not Logging then return end
  154.     local Color = Color3.fromRGB(255,255,255)
  155.     if string.sub(Message, 1,1) == ":" or string.sub(Message,1,1) == ";" then
  156.         Color = Color3.fromRGB(220,20,60)
  157.     elseif string.sub(Message,1,2) == "/w" or string.sub(Message,1,7) == "/whisper" then
  158.         Color = Color3.fromRGB(0,200,0)
  159.     elseif string.sub(Message, 1,2) == "/e" then
  160.         Color = Color3.fromRGB(255,232,11)
  161.     elseif string.sub(Message,1,5) == "/team" or string.sub(Message,1,2) == "/t" then
  162.         Color = Color3.fromRGB(30,144,255)
  163.     elseif string.sub(Message,1,3) == "/me" then
  164.         Color = Color3.fromRGB(138,43,226)
  165.     elseif string.sub(Message,1,1) == "!" or string.sub(Message,1,1) == "?" then
  166.         Color = Color3.fromRGB(255,140,0)
  167.     else
  168.         Color = Color3.fromRGB(255,255,255)
  169.     end
  170.     local o = Instance.new("TextLabel", LogPanel)
  171.     o.Text = Player.Name .. ": " .. Message
  172.     o.Size = UDim2.new(0.5,0,.006,0)
  173.     o.Position = UDim2.new(0,0,0.007 + OutputPos , 0)
  174.     o.Font = Enum.Font.SourceSansSemibold
  175.     o.TextColor3 = Color
  176.     o.BackgroundTransparency = 1
  177.     o.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  178.     o.BorderSizePixel = 0
  179.     o.FontSize = "Size14"
  180.     o.TextXAlignment = Enum.TextXAlignment.Left
  181.     o.ClipsDescendants = true
  182.     OutputPos = OutputPos + 0.007
  183. end
  184.  
  185. Clear.Name = "Clear"
  186. Clear.Parent = Frame
  187. Clear.BackgroundColor3 = Color3.new(1, 1, 1)
  188. Clear.BackgroundTransparency = 1
  189. Clear.BorderSizePixel = 0
  190. Clear.Position = UDim2.new(0.748501003, 0, 0, 0)
  191. Clear.Size = UDim2.new(0, 52, 0, 20)
  192. Clear.Font = Enum.Font.Highway
  193. Clear.Text = "Clear"
  194. Clear.TextColor3 = Color3.new(0, 0.627451, 0)
  195. Clear.TextSize = 14
  196.  
  197. Clear.MouseButton1Down:Connect(function()
  198.     for i,v in pairs(LogPanel:GetChildren()) do
  199.         if v.Text ~= "Welcome to Chat Log! | Made by Draconic#0995" then
  200.             v:Destroy()
  201.         end
  202.     end
  203.     OutputPos = 0
  204. end)
  205.  
  206. for i,v in pairs(game.Players:GetChildren()) do
  207.     v.Chatted:Connect(function(Message)
  208.         Output(v, Message)
  209.     end)
  210. end
  211.  
  212. game.Players.ChildAdded:Connect(function(Player)
  213.     if Player:IsA("Player") then
  214.         Player.Chatted:Connect(function(Message)
  215.             Output(Player, Message)
  216.         end)
  217.     end
  218. end)
  219.  
  220. FrameHolder.Name = "FrameHolder"
  221. FrameHolder.Parent = ChatLog
  222. FrameHolder.BackgroundColor3 = Color3.new(1, 1, 1)
  223. FrameHolder.BackgroundTransparency = 1
  224. FrameHolder.Position = UDim2.new(0, 0, 0, 0)
  225. FrameHolder.Size = UDim2.new(0, 100, 0, 100)
  226.  
  227. Loading.Name = "Loading"
  228. Loading.Parent = FrameHolder
  229. Loading.BackgroundColor3 = Color3.new(1, 1, 1)
  230. Loading.BackgroundTransparency = 1
  231. Loading.Position = UDim2.new(0, 0, 0, 0)
  232. Loading.Size = UDim2.new(0, 436, 0, 346)
  233. Loading.Image = "rbxassetid://2601977061"
  234.  
  235. FrameHolder:TweenPosition(UDim2.new(0.43403694, 0, 0.133466139, 0), "InOut", "Sine", 0.5, false, nil)
  236. wait()
  237. Loading:TweenPosition(UDim2.new(-1.37131715, 0, -0.184999391, 0), "InOut", "Sine", 0.5, false, nil)
  238. wait(2)
  239. Loading:TweenPosition(UDim2.new(-10, 0, -5, 0), "InOut", "Sine", 0.5, false, nil)
  240. wait(1)
  241. FrameHolder:Destroy()
  242.  
  243. Frame.Visible = true
  244. Frame:TweenPosition(UDim2.new(0.307387829, 0, 0.336653352, 0), "InOut", "Sine", 0.5, false, nil)
  245. Frame.Active = true
  246. Frame.Draggable = true
  247. wait()
  248.  
  249. game.StarterGui:SetCore("SendNotification", {
  250.     Title = "Notification";
  251.     Text = "Chat Log Enabled!";
  252.     Icon = "rbxassetid://2599962896";
  253.     Duration = 3;
  254. })
  255.  
  256. --[[ ]]--
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top