ScriptBlox is undergoing maintenance, so downtime is possible. Sorry for the inconvenience!
Universal Script ๐Ÿ“Œ
2.9k Views

Chat Logger

Universal Script ๐Ÿ“ŒUploaded by
8 months ago
Please login to perform these actions:

Description

A chat logger based on the ones during the synX/KRNL phase. Not too hard to make.

View Raw
Edited By: hackor Download


Comments
7
User profile picture
iplaywarzone5 8 months ago
man.
User profile picture
iplaywarzone5 8 months ago
if game.Players.LocalPlayer.PlayerGui:FindFirstChild("ChatLogGUI") then game.Players.LocalPlayer.PlayerGui.ChatLogGUI:Destroy() end local UI_POSITION = UDim2.new(0.01, 0, 0.65, 0) local UI_SIZE = UDim2.new(0.25, 0, 0.3, 0) local MAX_MESSAGES = 100 local screenGui = Instance.new("ScreenGui") screenGui.Name = "ChatLogGUI" screenGui.ResetOnS* = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local mainFrame = Instance.new("Frame") mainFrame.Name = "Background" mainFrame.Size = UI_SIZE mainFrame.Position = UI_POSITION mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.BackgroundTransparency = 0.2 mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui local scrollingFrame = Instance.new("ScrollingFrame") scrollingFrame.Name = "MessageContainer" scrollingFrame.Size = UDim2.new(1, -5, 1, -5) scrollingFrame.Position = UDim2.new(0.5, 0, 0.5, 0) scrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5) scrollingFrame.BackgroundTransparency = 1 scrollingFrame.BorderSizePixel = 0 scrollingFrame.ScrollBarImageColor3 = Color3.fromRGB(100, 100, 100) scrollingFrame.ScrollBarThickness = 4 scrollingFrame.Parent = mainFrame local listLayout = Instance.new("UIListLayout") listLayout.Name = "Layout" listLayout.FillDirection = Enum.FillDirection.Vertical listLayout.HorizontalAlignment = Enum.HorizontalAlignment.Left listLayout.SortOrder = Enum.SortOrder.LayoutOrder listLayout.Padding = UDim.new(0, 3) listLayout.Parent = scrollingFrame local function addMessage(player, message) message = message:gsub("<", "&lt;"):gsub(">", "&gt;") local textLabel = Instance.new("TextLabel") textLabel.Name = "Message" textLabel.BackgroundTransparency = 1 textLabel.Size = UDim2.new(1,
User profile picture
iplaywarzone5 8 months ago
his full script if u want
User profile picture
iplaywarzone5 8 months ago
UDim2.new(1, 0, 0, 16) textLabel.Font = Enum.Font.SourceSans textLabel.TextSize = 14 textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) textLabel.TextXAlignment = Enum.TextXAlignment.Left textLabel.TextWrapped = true textLabel.RichText = true textLabel.Text = string.format('<font color="#ff5555">%s</font>: %s', player.Name, message) textLabel.AutomaticSize = Enum.AutomaticSize.Y textLabel.Parent = scrollingFrame if #scrollingFrame:GetChildren() > MAX_MESSAGES + 1 then local oldestMessage = scrollingFrame:GetChildren()[2] if oldestMessage and oldestMessage:IsA("TextLabel") then oldestMessage:Destroy() end end wait() scrollingFrame.CanvasPosition = Vector2.new(0, scrollingFrame.Canv*ize.Y) end local function onPlayerAdded(player) player.Chatted:Connect(function(message) addMessage(player, message) end) end for _, player in ipairs(game.Players:GetPlayers()) do onPlayerAdded(player) end game.Players.PlayerAdded:Connect(onPlayerAdded)
User profile picture
iplaywarzone5 8 months ago
pt 2
User profile picture
hackor 8 months ago
It's open sourced?
User profile picture
hackor 8 months ago
@iplaywarzone5 Its open sourced?
Please Login to add a comment.