-- ANSHUU CHAT - Custom UI Script for Delta Executor local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") -- Clean up existing instances if CoreGui:FindFirstChild("AnshuuChatUI") then CoreGui.AnshuuChatUI:Destroy() end -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AnshuuChatUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Main Container Frame (Optimized Height) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainContainer" MainFrame.Size = UDim2.new(0, 300, 0, 280) MainFrame.Position = UDim2.new(0.02, 0, 0.4, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainFrame.BackgroundTransparency = 0.2 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = MainFrame -- Title Header local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -20, 0, 25) Title.Position = UDim2.new(0, 10, 0, 5) Title.BackgroundTransparency = 1 Title.Text = "ANSHUU CHAT" Title.TextColor3 = Color3.fromRGB(255, 215, 0) Title.TextSize = 16 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = MainFrame -- Scrolling Message Area local ScrollContainer = Instance.new("ScrollingFrame") ScrollContainer.Size = UDim2.new(1, -16, 1, -75) ScrollContainer.Position = UDim2.new(0, 8, 0, 32) ScrollContainer.BackgroundTransparency = 1 ScrollContainer.ScrollBarThickness = 4 ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollContainer.Parent = MainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 6) UIListLayout.Parent = ScrollContainer UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y) ScrollContainer.CanvasPosition = Vector2.new(0, UIListLayout.AbsoluteContentSize.Y) end) -- Text Input Box local InputBox = Instance.new("TextBox") InputBox.Size = UDim2.new(1, -16, 0, 30) InputBox.Position = UDim2.new(0, 8, 1, -36) InputBox.BackgroundColor3 = Color3.fromRGB(35, 35, 45) InputBox.PlaceholderText = "Click Here To Chat..." InputBox.PlaceholderColor3 = Color3.fromRGB(150, 150, 160) InputBox.Text = "" InputBox.TextColor3 = Color3.fromRGB(255, 255, 255) InputBox.TextSize = 13 InputBox.Font = Enum.Font.Gotham InputBox.ClearTextOnFocus = false InputBox.Parent = MainFrame local InputCorner = Instance.new("UICorner") InputCorner.CornerRadius = UDim.new(0, 8) InputCorner.Parent = InputBox -- Helper function to fetch RP Name from player character local function GetRPName(player) if not player then return "" end local char = player.Character if char then -- Checks for common RP Name BillboardGui / TextLabel structures for _, v in ipairs(char:GetDescendants()) do if v:IsA("TextLabel") and (v.Name:lower():find("rp") or v.Name:lower():find("name") or v.Name:lower():find("roleplay")) then if v.Text ~= "" then return v.Text end end end end return player.DisplayName or player.Name end -- Function to Add Chat Row local function AddChatMessage(senderPlayer, messageText, isSystem) local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 0, 40) Frame.BackgroundTransparency = 1 Frame.Parent = ScrollContainer if isSystem then local SystemText = Instance.new("TextLabel") SystemText.Size = UDim2.new(1, 0, 1, 0) SystemText.BackgroundTransparency = 1 SystemText.Text = messageText SystemText.TextColor3 = Color3.fromRGB(0, 255, 150) SystemText.TextSize = 11 SystemText.Font = Enum.Font.GothamItalic SystemText.Parent = Frame return end -- Avatar Thumbnail Image local AvatarImg = Instance.new("ImageLabel") AvatarImg.Size = UDim2.new(0, 32, 0, 32) AvatarImg.Position = UDim2.new(0, 0, 0, 2) AvatarImg.BackgroundColor3 = Color3.fromRGB(40, 40, 50) local AvatarCorner = Instance.new("UICorner") AvatarCorner.CornerRadius = UDim.new(1, 0) AvatarCorner.Parent = AvatarImg pcall(function() local content, isReady = Players:GetUserThumbnailAsync( senderPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100 ) AvatarImg.Image = content end) AvatarImg.Parent = Frame -- RP Username Display local NameLabel = Instance.new("TextLabel") NameLabel.Size = UDim2.new(1, -40, 0, 14) NameLabel.Position = UDim2.new(0, 38, 0, 2) NameLabel.BackgroundTransparency = 1 NameLabel.Text = GetRPName(senderPlayer) NameLabel.TextColor3 = Color3.fromRGB(255, 170, 0) NameLabel.TextSize = 12 NameLabel.Font = Enum.Font.GothamBold NameLabel.TextXAlignment = Enum.TextXAlignment.Left NameLabel.Parent = Frame -- Message Body local MsgLabel = Instance.new("TextLabel") MsgLabel.Size = UDim2.new(1, -40, 0, 18) MsgLabel.Position = UDim2.new(0, 38, 0, 16) MsgLabel.BackgroundTransparency = 1 MsgLabel.Text = messageText MsgLabel.TextColor3 = Color3.fromRGB(240, 240, 240) MsgLabel.TextSize = 12 MsgLabel.Font = Enum.Font.Gotham MsgLabel.TextXAlignment = Enum.TextXAlignment.Left MsgLabel.TextWrapped = true MsgLabel.Parent = Frame end -- Monitor Joining Players Players.PlayerAdded:Connect(function(player) AddChatMessage(nil, GetRPName(player) .. " joined the chat.", true) end) -- Handle Local Message Sending InputBox.FocusLost:Connect(function(enterPressed) if enterPressed and InputBox.Text ~= "" then AddChatMessage(LocalPlayer, InputBox.Text, false) InputBox.Text = "" end end) -- Initial System Message AddChatMessage(nil, "Anshuu Chat Initialized Privately.", true) -- ANSHUU CHAT - Custom UI Script for Delta Executor local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") -- Clean up existing instances if CoreGui:FindFirstChild("AnshuuChatUI") then CoreGui.AnshuuChatUI:Destroy() end -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AnshuuChatUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Main Container Frame (Optimized Height) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainContainer" MainFrame.Size = UDim2.new(0, 300, 0, 280) MainFrame.Position = UDim2.new(0.02, 0, 0.4, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainFrame.BackgroundTransparency = 0.2 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = MainFrame -- Title Header local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -20, 0, 25) Title.Position = UDim2.new(0, 10, 0, 5) Title.BackgroundTransparency = 1 Title.Text = "ANSHUU CHAT" Title.TextColor3 = Color3.fromRGB(255, 215, 0) Title.TextSize = 16 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = MainFrame -- Scrolling Message Area local ScrollContainer = Instance.new("ScrollingFrame") ScrollContainer.Size = UDim2.new(1, -16, 1, -75) ScrollContainer.Position = UDim2.new(0, 8, 0, 32) ScrollContainer.BackgroundTransparency = 1 ScrollContainer.ScrollBarThickness = 4 ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollContainer.Parent = MainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 6) UIListLayout.Parent = ScrollContainer UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y) ScrollContainer.CanvasPosition = Vector2.new(0, UIListLayout.AbsoluteContentSize.Y) end) -- Text Input Box local InputBox = Instance.new("TextBox") InputBox.Size = UDim2.new(1, -16, 0, 30) InputBox.Position = UDim2.new(0, 8, 1, -36) InputBox.BackgroundColor3 = Color3.fromRGB(35, 35, 45) InputBox.PlaceholderText = "Click Here To Chat..." InputBox.PlaceholderColor3 = Color3.fromRGB(150, 150, 160) InputBox.Text = "" InputBox.TextColor3 = Color3.fromRGB(255, 255, 255) InputBox.TextSize = 13 InputBox.Font = Enum.Font.Gotham InputBox.ClearTextOnFocus = false InputBox.Parent = MainFrame local InputCorner = Instance.new("UICorner") InputCorner.CornerRadius = UDim.new(0, 8) InputCorner.Parent = InputBox -- Helper function to fetch RP Name from player character local function GetRPName(player) if not player then return "" end local char = player.Character if char then -- Checks for common RP Name BillboardGui / TextLabel structures for _, v in ipairs(char:GetDescendants()) do if v:IsA("TextLabel") and (v.Name:lower():find("rp") or v.Name:lower():find("name") or v.Name:lower():find("roleplay")) then if v.Text ~= "" then return v.Text end end end end return player.DisplayName or player.Name end -- Function to Add Chat Row local function AddChatMessage(senderPlayer, messageText, isSystem) local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 0, 40) Frame.BackgroundTransparency = 1 Frame.Parent = ScrollContainer if isSystem then local SystemText = Instance.new("TextLabel") SystemText.Size = UDim2.new(1, 0, 1, 0) SystemText.BackgroundTransparency = 1 SystemText.Text = messageText SystemText.TextColor3 = Color3.fromRGB(0, 255, 150) SystemText.TextSize = 11 SystemText.Font = Enum.Font.GothamItalic SystemText.Parent = Frame return end -- Avatar Thumbnail Image local AvatarImg = Instance.new("ImageLabel") AvatarImg.Size = UDim2.new(0, 32, 0, 32) AvatarImg.Position = UDim2.new(0, 0, 0, 2) AvatarImg.BackgroundColor3 = Color3.fromRGB(40, 40, 50) local AvatarCorner = Instance.new("UICorner") AvatarCorner.CornerRadius = UDim.new(1, 0) AvatarCorner.Parent = AvatarImg pcall(function() local content, isReady = Players:GetUserThumbnailAsync( senderPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100 ) AvatarImg.Image = content end) AvatarImg.Parent = Frame -- RP Username Display local NameLabel = Instance.new("TextLabel") NameLabel.Size = UDim2.new(1, -40, 0, 14) NameLabel.Position = UDim2.new(0, 38, 0, 2) NameLabel.BackgroundTransparency = 1 NameLabel.Text = GetRPName(senderPlayer) NameLabel.TextColor3 = Color3.fromRGB(255, 170, 0) NameLabel.TextSize = 12 NameLabel.Font = Enum.Font.GothamBold NameLabel.TextXAlignment = Enum.TextXAlignment.Left NameLabel.Parent = Frame -- Message Body local MsgLabel = Instance.new("TextLabel") MsgLabel.Size = UDim2.new(1, -40, 0, 18) MsgLabel.Position = UDim2.new(0, 38, 0, 16) MsgLabel.BackgroundTransparency = 1 MsgLabel.Text = messageText MsgLabel.TextColor3 = Color3.fromRGB(240, 240, 240) MsgLabel.TextSize = 12 MsgLabel.Font = Enum.Font.Gotham MsgLabel.TextXAlignment = Enum.TextXAlignment.Left MsgLabel.TextWrapped = true MsgLabel.Parent = Frame end -- Monitor Joining Players Players.PlayerAdded:Connect(function(player) AddChatMessage(nil, GetRPName(player) .. " joined the chat.", true) end) -- Handle Local Message Sending InputBox.FocusLost:Connect(function(enterPressed) if enterPressed and InputBox.Text ~= "" then AddChatMessage(LocalPlayer, InputBox.Text, false) InputBox.Text = "" end end) -- Initial System Message AddChatMessage(nil, "Anshuu Chat Initialized Privately.", true) --[[ WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk! ]] -- ANSHUU CHAT - Custom UI Script for Delta Executor local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") -- Clean up existing instances if CoreGui:FindFirstChild("AnshuuChatUI") then CoreGui.AnshuuChatUI:Destroy() end -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AnshuuChatUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Main Container Frame (Optimized Height) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainContainer" MainFrame.Size = UDim2.new(0, 300, 0, 280) MainFrame.Position = UDim2.new(0.02, 0, 0.4, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainFrame.BackgroundTransparency = 0.2 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = MainFrame -- Title Header local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -20, 0, 25) Title.Position = UDim2.new(0, 10, 0, 5) Title.BackgroundTransparency = 1 Title.Text = "ANSHUU CHAT" Title.TextColor3 = Color3.fromRGB(255, 215, 0) Title.TextSize = 16 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = MainFrame -- Scrolling Message Area local ScrollContainer = Instance.new("ScrollingFrame") ScrollContainer.Size = UDim2.new(1, -16, 1, -75) ScrollContainer.Position = UDim2.new(0, 8, 0, 32) ScrollContainer.BackgroundTransparency = 1 ScrollContainer.ScrollBarThickness = 4 ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollContainer.Parent = MainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 6) UIListLayout.Parent = ScrollContainer UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y) ScrollContainer.CanvasPosition = Vector2.new(0, UIListLayout.AbsoluteContentSize.Y) end) -- Text Input Box local InputBox = Instance.new("TextBox") InputBox.Size = UDim2.new(1, -16, 0, 30) InputBox.Position = UDim2.new(0, 8, 1, -36) InputBox.BackgroundColor3 = Color3.fromRGB(35, 35, 45) InputBox.PlaceholderText = "Click Here To Chat..." InputBox.PlaceholderColor3 = Color3.fromRGB(150, 150, 160) InputBox.Text = "" InputBox.TextColor3 = Color3.fromRGB(255, 255, 255) InputBox.TextSize = 13 InputBox.Font = Enum.Font.Gotham InputBox.ClearTextOnFocus = false InputBox.Parent = MainFrame local InputCorner = Instance.new("UICorner") InputCorner.CornerRadius = UDim.new(0, 8) InputCorner.Parent = InputBox -- Helper function to fetch RP Name from player character local function GetRPName(player) if not player then return "" end local char = player.Character if char then -- Checks for common RP Name BillboardGui / TextLabel structures for _, v in ipairs(char:GetDescendants()) do if v:IsA("TextLabel") and (v.Name:lower():find("rp") or v.Name:lower():find("name") or v.Name:lower():find("roleplay")) then if v.Text ~= "" then return v.Text end end end end return player.DisplayName or player.Name end -- Function to Add Chat Row local function AddChatMessage(senderPlayer, messageText, isSystem) local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 0, 40) Frame.BackgroundTransparency = 1 Frame.Parent = ScrollContainer if isSystem then local SystemText = Instance.new("TextLabel") SystemText.Size = UDim2.new(1, 0, 1, 0) SystemText.BackgroundTransparency = 1 SystemText.Text = messageText SystemText.TextColor3 = Color3.fromRGB(0, 255, 150) SystemText.TextSize = 11 SystemText.Font = Enum.Font.GothamItalic SystemText.Parent = Frame return end -- Avatar Thumbnail Image local AvatarImg = Instance.new("ImageLabel") AvatarImg.Size = UDim2.new(0, 32, 0, 32) AvatarImg.Position = UDim2.new(0, 0, 0, 2) AvatarImg.BackgroundColor3 = Color3.fromRGB(40, 40, 50) local AvatarCorner = Instance.new("UICorner") AvatarCorner.CornerRadius = UDim.new(1, 0) AvatarCorner.Parent = AvatarImg pcall(function() local content, isReady = Players:GetUserThumbnailAsync( senderPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100 ) AvatarImg.Image = content end) AvatarImg.Parent = Frame -- RP Username Display local NameLabel = Instance.new("TextLabel") NameLabel.Size = UDim2.new(1, -40, 0, 14) NameLabel.Position = UDim2.new(0, 38, 0, 2) NameLabel.BackgroundTransparency = 1 NameLabel.Text = GetRPName(senderPlayer) NameLabel.TextColor3 = Color3.fromRGB(255, 170, 0) NameLabel.TextSize = 12 NameLabel.Font = Enum.Font.GothamBold NameLabel.TextXAlignment = Enum.TextXAlignment.Left NameLabel.Parent = Frame -- Message Body local MsgLabel = Instance.new("TextLabel") MsgLabel.Size = UDim2.new(1, -40, 0, 18) MsgLabel.Position = UDim2.new(0, 38, 0, 16) MsgLabel.BackgroundTransparency = 1 MsgLabel.Text = messageText MsgLabel.TextColor3 = Color3.fromRGB(240, 240, 240) MsgLabel.TextSize = 12 MsgLabel.Font = Enum.Font.Gotham MsgLabel.TextXAlignment = Enum.TextXAlignment.Left MsgLabel.TextWrapped = true MsgLabel.Parent = Frame end -- Monitor Joining Players Players.PlayerAdded:Connect(function(player) AddChatMessage(nil, GetRPName(player) .. " joined the chat.", true) end) -- Handle Local Message Sending InputBox.FocusLost:Connect(function(enterPressed) if enterPressed and InputBox.Text ~= "" then AddChatMessage(LocalPlayer, InputBox.Text, false) InputBox.Text = "" end end) -- Initial System Message AddChatMessage(nil, "Anshuu Chat Initialized Privately.", true) -- ANSHUU CHAT - Custom UI Script for Delta Executor local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") -- Clean up existing instances if CoreGui:FindFirstChild("AnshuuChatUI") then CoreGui.AnshuuChatUI:Destroy() end -- Create ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AnshuuChatUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Main Container Frame (Optimized Height) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainContainer" MainFrame.Size = UDim2.new(0, 300, 0, 280) MainFrame.Position = UDim2.new(0.02, 0, 0.4, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainFrame.BackgroundTransparency = 0.2 MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 12) UICorner.Parent = MainFrame -- Title Header local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -20, 0, 25) Title.Position = UDim2.new(0, 10, 0, 5) Title.BackgroundTransparency = 1 Title.Text = "ANSHUU CHAT" Title.TextColor3 = Color3.fromRGB(255, 215, 0) Title.TextSize = 16 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = MainFrame -- Scrolling Message Area local ScrollContainer = Instance.new("ScrollingFrame") ScrollContainer.Size = UDim2.new(1, -16, 1, -75) ScrollContainer.Position = UDim2.new(0, 8, 0, 32) ScrollContainer.BackgroundTransparency = 1 ScrollContainer.ScrollBarThickness = 4 ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollContainer.Parent = MainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 6) UIListLayout.Parent = ScrollContainer UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() ScrollContainer.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y) ScrollContainer.CanvasPosition = Vector2.new(0, UIListLayout.AbsoluteContentSize.Y) end) -- Text Input Box local InputBox = Instance.new("TextBox") InputBox.Size = UDim2.new(1, -16, 0, 30) InputBox.Position = UDim2.new(0, 8, 1, -36) InputBox.BackgroundColor3 = Color3.fromRGB(35, 35, 45) InputBox.PlaceholderText = "Click Here To Chat..." InputBox.PlaceholderColor3 = Color3.fromRGB(150, 150, 160) InputBox.Text = "" InputBox.TextColor3 = Color3.fromRGB(255, 255, 255) InputBox.TextSize = 13 InputBox.Font = Enum.Font.Gotham InputBox.ClearTextOnFocus = false InputBox.Parent = MainFrame local InputCorner = Instance.new("UICorner") InputCorner.CornerRadius = UDim.new(0, 8) InputCorner.Parent = InputBox -- Helper function to fetch RP Name from player character local function GetRPName(player) if not player then return "" end local char = player.Character if char then -- Checks for common RP Name BillboardGui / TextLabel structures for _, v in ipairs(char:GetDescendants()) do if v:IsA("TextLabel") and (v.Name:lower():find("rp") or v.Name:lower():find("name") or v.Name:lower():find("roleplay")) then if v.Text ~= "" then return v.Text end end end end return player.DisplayName or player.Name end -- Function to Add Chat Row local function AddChatMessage(senderPlayer, messageText, isSystem) local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 0, 40) Frame.BackgroundTransparency = 1 Frame.Parent = ScrollContainer if isSystem then local SystemText = Instance.new("TextLabel") SystemText.Size = UDim2.new(1, 0, 1, 0) SystemText.BackgroundTransparency = 1 SystemText.Text = messageText SystemText.TextColor3 = Color3.fromRGB(0, 255, 150) SystemText.TextSize = 11 SystemText.Font = Enum.Font.GothamItalic SystemText.Parent = Frame return end -- Avatar Thumbnail Image local AvatarImg = Instance.new("ImageLabel") AvatarImg.Size = UDim2.new(0, 32, 0, 32) AvatarImg.Position = UDim2.new(0, 0, 0, 2) AvatarImg.BackgroundColor3 = Color3.fromRGB(40, 40, 50) local AvatarCorner = Instance.new("UICorner") AvatarCorner.CornerRadius = UDim.new(1, 0) AvatarCorner.Parent = AvatarImg pcall(function() local content, isReady = Players:GetUserThumbnailAsync( senderPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100 ) AvatarImg.Image = content end) AvatarImg.Parent = Frame -- RP Username Display local NameLabel = Instance.new("TextLabel") NameLabel.Size = UDim2.new(1, -40, 0, 14) NameLabel.Position = UDim2.new(0, 38, 0, 2) NameLabel.BackgroundTransparency = 1 NameLabel.Text = GetRPName(senderPlayer) NameLabel.TextColor3 = Color3.fromRGB(255, 170, 0) NameLabel.TextSize = 12 NameLabel.Font = Enum.Font.GothamBold NameLabel.TextXAlignment = Enum.TextXAlignment.Left NameLabel.Parent = Frame -- Message Body local MsgLabel = Instance.new("TextLabel") MsgLabel.Size = UDim2.new(1, -40, 0, 18) MsgLabel.Position = UDim2.new(0, 38, 0, 16) MsgLabel.BackgroundTransparency = 1 MsgLabel.Text = messageText MsgLabel.TextColor3 = Color3.fromRGB(240, 240, 240) MsgLabel.TextSize = 12 MsgLabel.Font = Enum.Font.Gotham MsgLabel.TextXAlignment = Enum.TextXAlignment.Left MsgLabel.TextWrapped = true MsgLabel.Parent = Frame end -- Monitor Joining Players Players.PlayerAdded:Connect(function(player) AddChatMessage(nil, GetRPName(player) .. " joined the chat.", true) end) -- Handle Local Message Sending InputBox.FocusLost:Connect(function(enterPressed) if enterPressed and InputBox.Text ~= "" then AddChatMessage(LocalPlayer, InputBox.Text, false) InputBox.Text = "" end end) -- Initial System Message AddChatMessage(nil, "Anshuu Chat Initialized Privately.", true)