local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local Logs = {} local LoggingSettings = { ClickLogs = true, PartDetailsLogs = true, EnvironmentLogs = true, PlayerStatsLogs = true, } local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game.CoreGui local MainFrame = Instance.new("Frame") MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Size = UDim2.new(0, 500, 0, 600) MainFrame.Position = UDim2.new(0.5, -250, 0.5, -300) MainFrame.BackgroundTransparency = 0.1 MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.Active = true MainFrame.Draggable = true local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 10) UICorner.Parent = MainFrame local TitleBar = Instance.new("Frame") TitleBar.Parent = MainFrame TitleBar.Size = UDim2.new(1, 0, 0, 40) TitleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40) local TitleBarCorner = Instance.new("UICorner") TitleBarCorner.CornerRadius = UDim.new(0, 10) TitleBarCorner.Parent = TitleBar local Title = Instance.new("TextLabel") Title.Parent = TitleBar Title.Text = "Part detector" Title.Size = UDim2.new(1, -40, 1, 0) Title.Position = UDim2.new(0, 20, 0, 0) Title.BackgroundTransparency = 1 Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 20 local Tabs = Instance.new("Frame") Tabs.Parent = MainFrame Tabs.Size = UDim2.new(1, 0, 0, 40) Tabs.Position = UDim2.new(0, 0, 0, 40) Tabs.BackgroundColor3 = Color3.fromRGB(40, 40, 40) local TabsCorner = Instance.new("UICorner") TabsCorner.CornerRadius = UDim.new(0, 10) TabsCorner.Parent = Tabs local TabButtons = { "Logs", "Settings", "Info", "Actions" } local TabContainers = {} local function createTabButton(name, position) local Button = Instance.new("TextButton") Button.Parent = Tabs Button.Text = name Button.Size = UDim2.new(0.25, -10, 1, 0) Button.Position = UDim2.new(0.25 * (position - 1), 5, 0, 0) Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.Font = Enum.Font.SourceSans Button.TextSize = 18 local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 8) Corner.Parent = Button Button.MouseEnter:Connect(function() Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70) end) Button.MouseLeave:Connect(function() Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) end) return Button end local function createTabContainer(name) local TabContainer = Instance.new("Frame") TabContainer.Parent = MainFrame TabContainer.Size = UDim2.new(1, 0, 1, -80) TabContainer.Position = UDim2.new(0, 0, 0, 80) TabContainer.BackgroundTransparency = 1 TabContainer.Visible = false TabContainers[name] = TabContainer return TabContainer end for i, name in ipairs(TabButtons) do local Button = createTabButton(name, i) local TabContainer = createTabContainer(name) Button.MouseButton1Click:Connect(function() for _, container in pairs(TabContainers) do container.Visible = false end TabContainer.Visible = true end) end local LogsTab = TabContainers["Logs"] local ScrollingFrame = Instance.new("ScrollingFrame") ScrollingFrame.Parent = LogsTab ScrollingFrame.Size = UDim2.new(1, 0, 1, 0) ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollingFrame.ScrollBarThickness = 5 ScrollingFrame.BackgroundTransparency = 1 local UIListLayout = Instance.new("UIListLayout") UIListLayout.Parent = ScrollingFrame UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder local function LogMessage(message, color) local Log = Instance.new("TextLabel") Log.Parent = ScrollingFrame Log.Text = message Log.Size = UDim2.new(1, 0, 0, 20) Log.BackgroundTransparency = 1 Log.TextColor3 = color or Color3.fromRGB(255, 255, 255) Log.Font = Enum.Font.SourceSans Log.TextSize = 16 Log.TextWrapped = true table.insert(Logs, message) ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y) end local function performLogging() if LoggingSettings.ClickLogs then Mouse.Button1Down:Connect(function() local Target = Mouse.Target if Target then LogMessage("Clicked on: " .. Target.Name, Color3.fromRGB(0, 255, 0)) else LogMessage("Clicked on empty space", Color3.fromRGB(255, 0, 0)) end end) end if LoggingSettings.EnvironmentLogs then LogMessage("Lighting Brightness: " .. tostring(Lighting.Brightness), Color3.fromRGB(255, 200, 100)) LogMessage("Lighting TimeOfDay: " .. Lighting.TimeOfDay, Color3.fromRGB(200, 150, 255)) end if LoggingSettings.PlayerStatsLogs then LogMessage("Local Player Name: " .. LocalPlayer.Name, Color3.fromRGB(150, 255, 255)) LogMessage("Account Age: " .. tostring(LocalPlayer.AccountAge), Color3.fromRGB(255, 200, 150)) end end performLogging() local SettingsTab = TabContainers["Settings"] local function createToggleButton(name, position, settingKey) local Toggle = Instance.new("TextButton") Toggle.Parent = SettingsTab Toggle.Text = name .. ": " .. (LoggingSettings[settingKey] and "ON" or "OFF") Toggle.Size = UDim2.new(1, -20, 0, 40) Toggle.Position = UDim2.new(0, 10, 0, 50 * position) Toggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Toggle.TextColor3 = Color3.fromRGB(255, 255, 255) Toggle.Font = Enum.Font.SourceSans Toggle.TextSize = 18 local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 8) Corner.Parent = Toggle Toggle.MouseButton1Click:Connect(function() LoggingSettings[settingKey] = not LoggingSettings[settingKey] Toggle.Text = name .. ": " .. (LoggingSettings[settingKey] and "ON" or "OFF") end) return Toggle end local settingsIndex = 0 for key, _ in pairs(LoggingSettings) do settingsIndex += 1 createToggleButton(key, settingsIndex, key) end local InfoTab = TabContainers["Info"] local InfoText = Instance.new("TextLabel") InfoText.Parent = InfoTab InfoText.Text = "Please don't change the credits :(\nMade By Shido" InfoText.Size = UDim2.new(1, -20, 1, -20) InfoText.Position = UDim2.new(0, 10, 0, 10) InfoText.BackgroundTransparency = 1 InfoText.TextColor3 = Color3.fromRGB(128, 0, 128) InfoText.Font = Enum.Font.SourceSans InfoText.TextSize = 16 InfoText.TextWrapped = true InfoText.TextXAlignment = Enum.TextXAlignment.Left InfoText.TextYAlignment = Enum.TextYAlignment.Top local ActionsTab = TabContainers["Actions"] local ActionButton = Instance.new("TextButton") ActionButton.Parent = ActionsTab ActionButton.Text = "Clear Logs" ActionButton.Size = UDim2.new(0.8, 0, 0, 40) ActionButton.Position = UDim2.new(0.1, 0, 0.1, 0) ActionButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ActionButton.TextColor3 = Color3.fromRGB(255, 255, 255) ActionButton.Font = Enum.Font.SourceSans ActionButton.TextSize = 18 local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 8) Corner.Parent = ActionButton ActionButton.MouseButton1Click:Connect(function() for _, child in pairs(ScrollingFrame:GetChildren()) do if child:IsA("TextLabel") then child:Destroy() end end Logs = {} LogMessage("Logs cleared.", Color3.fromRGB(255, 255, 0)) end)