local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "DeltaXStrokeChangerGui" screenGui.ResetOnSpawn = false screenGui.Parent = CoreGui local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 300, 0, 180) mainFrame.Position = UDim2.new(0.5, -150, 0.5, -90) mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) mainFrame.BorderColor3 = Color3.fromRGB(50, 50, 50) mainFrame.BorderSizePixel = 2 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Visible = false mainFrame.Parent = screenGui local corner = Instance.new("UICorner", mainFrame) corner.CornerRadius = UDim.new(0, 8) local titleBar = Instance.new("Frame") titleBar.Name = "TitleBar" titleBar.Size = UDim2.new(1, 0, 0, 30) titleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35) titleBar.Parent = mainFrame local titleCorner = Instance.new("UICorner", titleBar) titleCorner.CornerRadius = UDim.new(0, 8) local titleLabel = Instance.new("TextLabel") titleLabel.Name = "TitleLabel" titleLabel.Size = UDim2.new(1, -35, 1, 0) titleLabel.Position = UDim2.new(0, 5, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "Delta X Stroke Color Changer" titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 16 titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = titleBar local closeButton = Instance.new("TextButton") closeButton.Name = "CloseButton" closeButton.Size = UDim2.new(0, 24, 0, 24) closeButton.Position = UDim2.new(1, -27, 0.5, -12) closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) closeButton.Text = "X" closeButton.Font = Enum.Font.GothamBold closeButton.TextSize = 14 closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.Parent = titleBar local closeCorner = Instance.new("UICorner", closeButton) closeCorner.CornerRadius = UDim.new(0, 6) local rgbLabel = Instance.new("TextLabel") rgbLabel.Size = UDim2.new(1, -20, 0, 20) rgbLabel.Position = UDim2.new(0, 10, 0, 40) rgbLabel.BackgroundTransparency = 1 rgbLabel.Text = "Color (R, G, B):" rgbLabel.Font = Enum.Font.Gotham rgbLabel.TextSize = 14 rgbLabel.TextColor3 = Color3.fromRGB(220, 220, 220) rgbLabel.TextXAlignment = Enum.TextXAlignment.Left rgbLabel.Parent = mainFrame local rgbTextBox = Instance.new("TextBox") rgbTextBox.Name = "RgbInput" rgbTextBox.Size = UDim2.new(1, -20, 0, 30) rgbTextBox.Position = UDim2.new(0, 10, 0, 60) rgbTextBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45) rgbTextBox.Text = "255, 0, 0" rgbTextBox.PlaceholderText = "e.g., 255, 0, 0" rgbTextBox.Font = Enum.Font.Gotham rgbTextBox.TextSize = 14 rgbTextBox.TextColor3 = Color3.fromRGB(255, 255, 255) rgbTextBox.ClearTextOnFocus = false rgbTextBox.Parent = mainFrame local textCorner = Instance.new("UICorner", rgbTextBox) textCorner.CornerRadius = UDim.new(0, 6) local rainbowLabel = Instance.new("TextLabel") rainbowLabel.Size = UDim2.new(0.6, 0, 0, 30) rainbowLabel.Position = UDim2.new(0, 10, 0, 100) rainbowLabel.BackgroundTransparency = 1 rainbowLabel.Text = "Animated Rainbow Color:" rainbowLabel.Font = Enum.Font.Gotham rainbowLabel.TextSize = 14 rainbowLabel.TextColor3 = Color3.fromRGB(220, 220, 220) rainbowLabel.TextXAlignment = Enum.TextXAlignment.Left rainbowLabel.Parent = mainFrame local rainbowToggle = Instance.new("TextButton") rainbowToggle.Name = "RainbowToggle" rainbowToggle.Size = UDim2.new(0.3, 0, 0, 30) rainbowToggle.Position = UDim2.new(0.7, -10, 0, 100) rainbowToggle.BackgroundColor3 = Color3.fromRGB(200, 50, 50) rainbowToggle.Text = "OFF" rainbowToggle.Font = Enum.Font.GothamBold rainbowToggle.TextSize = 14 rainbowToggle.TextColor3 = Color3.fromRGB(255, 255, 255) rainbowToggle.Parent = mainFrame local rainbowCorner = Instance.new("UICorner", rainbowToggle) rainbowCorner.CornerRadius = UDim.new(0, 6) local toggleVisibilityButton = Instance.new("TextButton") toggleVisibilityButton.Name = "ToggleVisibility" toggleVisibilityButton.Size = UDim2.new(0, 100, 0, 30) toggleVisibilityButton.Position = UDim2.new(0, 15, 1, -45) toggleVisibilityButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255) toggleVisibilityButton.Text = "SHOW" toggleVisibilityButton.Font = Enum.Font.GothamBold toggleVisibilityButton.TextSize = 16 toggleVisibilityButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleVisibilityButton.Parent = screenGui local toggleCorner = Instance.new("UICorner", toggleVisibilityButton) toggleCorner.CornerRadius = UDim.new(0, 6) local rainbowActive = false local rainbowConnection = nil local function applyStrokeColor(r, g, b) pcall(function() getgenv().Color = r, g, b for _, v in ipairs(CoreGui:GetDescendants()) do if v:IsA("UIStroke") and v.Parent:IsA("ImageButton") and v.Parent.Parent:IsA("ScreenGui") and v.Parent.Parent.Parent:IsA("Folder") and v.Parent.Parent.Parent.Parent.Name == "CoreGui" then v.Color = Color3.fromRGB(getgenv().Color) end end end) end local function applyColorFromTextBox() local success, r, g, b = pcall(function() local parts = rgbTextBox.Text:split(",") return tonumber(parts[1]), tonumber(parts[2]), tonumber(parts[3]) end) if success and type(r) == "number" and type(g) == "number" and type(b) == "number" then applyStrokeColor(r, g, b) else warn("Invalid RGB format in TextBox. Use three numbers separated by commas, e.g., 255, 0, 0") end end local function stopRainbow() if rainbowConnection then rainbowConnection:Disconnect() rainbowConnection = nil end rainbowActive = false rainbowToggle.Text = "OFF" rainbowToggle.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end local function startRainbow() if rainbowConnection then return end rainbowActive = true rainbowToggle.Text = "ON" rainbowToggle.BackgroundColor3 = Color3.fromRGB(50, 200, 50) local hue = 0 rainbowConnection = RunService.Heartbeat:Connect(function(dt) hue = (hue + (dt * 0.2)) % 1 local color = Color3.fromHSV(hue, 1, 1) applyStrokeColor(math.floor(color.R * 255), math.floor(color.G * 255), math.floor(color.B * 255)) end) end toggleVisibilityButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible toggleVisibilityButton.Text = mainFrame.Visible and "HIDE" or "SHOW" end) closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() end) rgbTextBox.FocusLost:Connect(function(enterPressed) if enterPressed then stopRainbow() applyColorFromTextBox() end end) rainbowToggle.MouseButton1Click:Connect(function() if rainbowActive then stopRainbow() applyColorFromTextBox() else startRainbow() end end) applyColorFromTextBox()