-- [[ ⚔️ VIHAAN CHAT EMBEDDED STREAM LOG ENGINE ]] -- local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") -- Clear old visual instances if game:GetService("CoreGui"):FindFirstChild("MickeyChatHub") then game:GetService("CoreGui").MickeyChatHub:Destroy() end -- Create Screen GUI Core local MickeyChatHub = Instance.new("ScreenGui") MickeyChatHub.Name = "MickeyChatHub" MickeyChatHub.Parent = game:GetService("CoreGui") MickeyChatHub.ResetOnSpawn = false -- Core Visual Panel local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Parent = MickeyChatHub MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) MainFrame.BorderSizePixel = 2 MainFrame.Position = UDim2.new(0.05, 0, 0.25, 0) MainFrame.Size = UDim2.new(0, 340, 0, 160) MainFrame.Active = true MainFrame.Draggable = true local UICorner = Instance.new("UICorner", MainFrame) UICorner.CornerRadius = UDim.new(0, 8) -- Header Title Label (Vihaan Chat) local TitleLabel = Instance.new("TextLabel") TitleLabel.Name = "TitleLabel" TitleLabel.Parent = MainFrame TitleLabel.Size = UDim2.new(1, 0, 0, 30) TitleLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 30) TitleLabel.Font = Enum.Font.SourceSansBold TitleLabel.Text = "⚔️ VIHAAN CHAT ⚔️" TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.TextSize = 16 local UICorner2 = Instance.new("UICorner", TitleLabel) UICorner2.CornerRadius = UDim.new(0, 8) -- [[ DEDICATED IN-TAB CHAT STREAM DISPLAY ]] -- local ChatStreamBox = Instance.new("ScrollingFrame") ChatStreamBox.Name = "ChatStreamBox" ChatStreamBox.Parent = MainFrame ChatStreamBox.Position = UDim2.new(0, 10, 0, 35) ChatStreamBox.Size = UDim2.new(1, -20, 0, 80) ChatStreamBox.BackgroundColor3 = Color3.fromRGB(15, 15, 15) ChatStreamBox.BorderSizePixel = 2 ChatStreamBox.CanvasSize = UDim2.new(0, 0, 0, 0) ChatStreamBox.ScrollBarThickness = 4 ChatStreamBox.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255) local StreamCorner = Instance.new("UICorner", ChatStreamBox) StreamCorner.CornerRadius = UDim.new(0, 6) local UIListLayout = Instance.new("UIListLayout", ChatStreamBox) UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 4) local UIPadding = Instance.new("UIPadding", ChatStreamBox) UIPadding.PaddingTop = UDim.new(0, 4) UIPadding.PaddingLeft = UDim.new(0, 6) UIPadding.PaddingRight = UDim.new(0, 6) -- [[ MINIMIZED TOP LEFT HANDLE ]] -- local MinimizedHandle = Instance.new("TextButton") MinimizedHandle.Name = "MinimizedHandle" MinimizedHandle.Parent = MickeyChatHub MinimizedHandle.Size = UDim2.new(0, 120, 0, 30) MinimizedHandle.Position = UDim2.new(0, 10, 0, 10) MinimizedHandle.BackgroundColor3 = Color3.fromRGB(25, 25, 25) MinimizedHandle.BorderSizePixel = 2 MinimizedHandle.Font = Enum.Font.SourceSansBold MinimizedHandle.Text = "Vihaan Chat" MinimizedHandle.TextColor3 = Color3.fromRGB(255, 255, 255) MinimizedHandle.TextSize = 14 MinimizedHandle.Visible = false local UICornerMin = Instance.new("UICorner", MinimizedHandle) UICornerMin.CornerRadius = UDim.new(0, 6) -- [[ INTERACTION SYSTEM FUNCTIONALITIES ]] -- local MinimizeBtn = Instance.new("TextButton") MinimizeBtn.Name = "MinimizeBtn" MinimizeBtn.Parent = MainFrame MinimizeBtn.Size = UDim2.new(0, 25, 0, 25) MinimizeBtn.Position = UDim2.new(1, -30, 0, 2) MinimizeBtn.BackgroundTransparency = 1 MinimizeBtn.Font = Enum.Font.SourceSansBold MinimizeBtn.Text = "—" MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) MinimizeBtn.TextSize = 16 MinimizeBtn.ZIndex = 5 MinimizeBtn.MouseButton1Click:Connect(function() MainFrame.Visible = false MinimizedHandle.Visible = true end) MinimizedHandle.MouseButton1Click:Connect(function() MinimizedHandle.Visible = false MainFrame.Visible = true end) -- Text Entry Input (With updated placeholder text) local ChatInput = Instance.new("TextBox") ChatInput.Name = "ChatInput" ChatInput.Parent = MainFrame ChatInput.Position = UDim2.new(0, 10, 0, 122) ChatInput.Size = UDim2.new(0, 260, 0, 30) ChatInput.BackgroundColor3 = Color3.fromRGB(40, 40, 40) ChatInput.TextColor3 = Color3.fromRGB(255, 255, 255) ChatInput.Font = Enum.Font.SourceSans ChatInput.Text = "" ChatInput.PlaceholderText = "Send message💬" -- Updated placeholder ChatInput.TextSize = 14 ChatInput.TextXAlignment = Enum.TextXAlignment.Left local UICorner3 = Instance.new("UICorner", ChatInput) local UIPaddingInput = Instance.new("UIPadding", ChatInput) UIPaddingInput.PaddingLeft = UDim.new(0, 8) -- Action Arrow Send Button local SendButton = Instance.new("TextButton") SendButton.Name = "SendButton" SendButton.Parent = MainFrame SendButton.Position = UDim2.new(0, 275, 0, 122) SendButton.Size = UDim2.new(0, 55, 0, 30) SendButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45) SendButton.TextColor3 = Color3.fromRGB(255, 255, 255) SendButton.Font = Enum.Font.SourceSansBold SendButton.Text = "➔" SendButton.TextSize = 16 local UICorner4 = Instance.new("UICorner", SendButton) -- Smooth Rainbow Sync Thread (Controls Borders, Header, and Handle borders) task.spawn(function() local hue = 0 while MickeyChatHub and MickeyChatHub.Parent do hue = (hue + 1) % 360 local rainbowColor = Color3.fromHSV(hue / 360, 1, 1) TitleLabel.TextColor3 = rainbowColor MainFrame.BorderColor3 = rainbowColor MinimizeBtn.TextColor3 = rainbowColor ChatStreamBox.BorderColor3 = rainbowColor SendButton.BorderColor3 = rainbowColor MinimizedHandle.TextColor3 = rainbowColor MinimizedHandle.BorderColor3 = rainbowColor task.wait(0.02) end end) -- Internal Tab Chat Injection Routine local function logMessageToTab(displayName, messageText) local LogLabel = Instance.new("TextLabel") LogLabel.Size = UDim2.new(1, 0, 0, 20) LogLabel.BackgroundTransparency = 1 LogLabel.Font = Enum.Font.SourceSansBold LogLabel.TextSize = 13 LogLabel.TextXAlignment = Enum.TextXAlignment.Left LogLabel.TextWrapped = true LogLabel.TextColor3 = Color3.fromRGB(225, 225, 225) LogLabel.Text = string.format("[%s]: %s", displayName, messageText) LogLabel.Parent = ChatStreamBox -- Auto scroll functionality ChatStreamBox.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 10) ChatStreamBox.CanvasPosition = Vector2.new(0, UIListLayout.AbsoluteContentSize.Y) end -- Send execution trigger SendButton.MouseButton1Click:Connect(function() if ChatInput.Text ~= "" then logMessageToTab(LocalPlayer.DisplayName, ChatInput.Text) ChatInput.Text = "" end end) -- Enter key convenience trigger ChatInput.FocusLost:Connect(function(enterPressed) if enterPressed and ChatInput.Text ~= "" then logMessageToTab(LocalPlayer.DisplayName, ChatInput.Text) ChatInput.Text = "" end end)