-- LocalScript -- Place this inside StarterPlayer > StarterPlayerScripts (or StarterGui) local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- Color palette local COLORS = { Background = Color3.fromRGB(18, 24, 38), Panel = Color3.fromRGB(24, 32, 50), Accent = Color3.fromRGB(0, 140, 255), AccentDark = Color3.fromRGB(0, 95, 185), AccentLight = Color3.fromRGB(90, 180, 255), Text = Color3.fromRGB(230, 240, 255), SubText = Color3.fromRGB(140, 165, 200), Stroke = Color3.fromRGB(0, 160, 255), Close = Color3.fromRGB(200, 60, 70), } -- ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "ApplyButtonUI" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui -- Outer glow frame (drop shadow illusion) local shadow = Instance.new("ImageLabel") shadow.Name = "Shadow" shadow.BackgroundTransparency = 1 shadow.Image = "rbxassetid://1316045217" shadow.ImageColor3 = Color3.fromRGB(0, 0, 0) shadow.ImageTransparency = 0.75 shadow.ScaleType = Enum.ScaleType.Slice shadow.SliceCenter = Rect.new(10, 10, 118, 118) shadow.Size = UDim2.new(1, 40, 1, 40) shadow.Position = UDim2.new(0.5, 0, 0.5, 0) shadow.AnchorPoint = Vector2.new(0.5, 0.5) shadow.ZIndex = 0 -- Main container local frame = Instance.new("Frame") frame.Name = "Container" frame.Size = UDim2.new(0, 260, 0, 110) frame.Position = UDim2.new(0.5, -130, 0.5, -55) frame.BackgroundColor3 = COLORS.Background frame.BorderSizePixel = 0 frame.Active = true frame.ZIndex = 1 frame.Parent = screenGui shadow.Parent = frame local frameCorner = Instance.new("UICorner") frameCorner.CornerRadius = UDim.new(0, 14) frameCorner.Parent = frame local frameStroke = Instance.new("UIStroke") frameStroke.Color = COLORS.Stroke frameStroke.Thickness = 1.5 frameStroke.Transparency = 0.3 frameStroke.Parent = frame local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(26, 34, 54)), ColorSequenceKeypoint.new(1, Color3.fromRGB(14, 18, 30)), }) gradient.Rotation = 90 gradient.Parent = frame -- Title bar local titleBar = Instance.new("Frame") titleBar.Name = "TitleBar" titleBar.Size = UDim2.new(1, 0, 0, 34) titleBar.BackgroundColor3 = COLORS.Panel titleBar.BorderSizePixel = 0 titleBar.ZIndex = 2 titleBar.Parent = frame local titleBarCorner = Instance.new("UICorner") titleBarCorner.CornerRadius = UDim.new(0, 14) titleBarCorner.Parent = titleBar -- Mask the bottom corners of the title bar so it looks flush local titleBarMask = Instance.new("Frame") titleBarMask.BackgroundColor3 = COLORS.Panel titleBarMask.BorderSizePixel = 0 titleBarMask.Size = UDim2.new(1, 0, 0, 14) titleBarMask.Position = UDim2.new(0, 0, 1, -14) titleBarMask.ZIndex = 2 titleBarMask.Parent = titleBar local titleBarStroke = Instance.new("UIStroke") titleBarStroke.Color = COLORS.Accent titleBarStroke.Thickness = 1 titleBarStroke.Transparency = 0.6 titleBarStroke.Parent = titleBar -- Accent dot + title text local accentDot = Instance.new("Frame") accentDot.Size = UDim2.new(0, 8, 0, 8) accentDot.Position = UDim2.new(0, 12, 0.5, -4) accentDot.BackgroundColor3 = COLORS.Accent accentDot.BorderSizePixel = 0 accentDot.ZIndex = 3 accentDot.Parent = titleBar local accentDotCorner = Instance.new("UICorner") accentDotCorner.CornerRadius = UDim.new(1, 0) accentDotCorner.Parent = accentDot local titleText = Instance.new("TextLabel") titleText.BackgroundTransparency = 1 titleText.Size = UDim2.new(1, -60, 1, 0) titleText.Position = UDim2.new(0, 28, 0, 0) titleText.Text = "Injector" titleText.TextColor3 = COLORS.Text titleText.TextSize = 13 titleText.Font = Enum.Font.GothamBold titleText.TextXAlignment = Enum.TextXAlignment.Left titleText.ZIndex = 3 titleText.Parent = titleBar -- Close (X) Button local closeButton = Instance.new("TextButton") closeButton.Name = "CloseButton" closeButton.Size = UDim2.new(0, 22, 0, 22) closeButton.Position = UDim2.new(1, -30, 0.5, -11) closeButton.BackgroundColor3 = COLORS.Close closeButton.BorderSizePixel = 0 closeButton.Text = "X" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.TextSize = 12 closeButton.Font = Enum.Font.GothamBold closeButton.ZIndex = 3 closeButton.Parent = titleBar local closeCorner = Instance.new("UICorner") closeCorner.CornerRadius = UDim.new(0, 6) closeCorner.Parent = closeButton closeButton.MouseEnter:Connect(function() TweenService:Create(closeButton, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(230, 80, 90)}):Play() end) closeButton.MouseLeave:Connect(function() TweenService:Create(closeButton, TweenInfo.new(0.15), {BackgroundColor3 = COLORS.Close}):Play() end) -- Body content area local body = Instance.new("Frame") body.BackgroundTransparency = 1 body.Size = UDim2.new(1, 0, 1, -34) body.Position = UDim2.new(0, 0, 0, 34) body.ZIndex = 2 body.Parent = frame -- Apply Button local applyButton = Instance.new("TextButton") applyButton.Name = "ApplyButton" applyButton.Size = UDim2.new(1, -24, 0, 38) applyButton.Position = UDim2.new(0, 12, 0, 18) applyButton.BackgroundColor3 = COLORS.AccentDark applyButton.BorderSizePixel = 0 applyButton.Text = "Inject" applyButton.TextColor3 = Color3.fromRGB(255, 255, 255) applyButton.TextSize = 15 applyButton.Font = Enum.Font.GothamBold applyButton.AutoButtonColor = false applyButton.ZIndex = 2 applyButton.Parent = body local applyCorner = Instance.new("UICorner") applyCorner.CornerRadius = UDim.new(0, 8) applyCorner.Parent = applyButton local applyGradient = Instance.new("UIGradient") applyGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, COLORS.Accent), ColorSequenceKeypoint.new(1, COLORS.AccentDark), }) applyGradient.Rotation = 90 applyGradient.Parent = applyButton local applyStroke = Instance.new("UIStroke") applyStroke.Color = COLORS.AccentLight applyStroke.Thickness = 1 applyStroke.Transparency = 0.5 applyStroke.Parent = applyButton applyButton.MouseEnter:Connect(function() TweenService:Create(applyButton, TweenInfo.new(0.15), {BackgroundColor3 = COLORS.Accent}):Play() end) applyButton.MouseLeave:Connect(function() TweenService:Create(applyButton, TweenInfo.new(0.15), {BackgroundColor3 = COLORS.AccentDark}):Play() end) applyButton.MouseButton1Down:Connect(function() TweenService:Create(applyButton, TweenInfo.new(0.08), {Size = UDim2.new(1, -28, 0, 36), Position = UDim2.new(0, 14, 0, 19)}):Play() end) applyButton.MouseButton1Up:Connect(function() TweenService:Create(applyButton, TweenInfo.new(0.08), {Size = UDim2.new(1, -24, 0, 38), Position = UDim2.new(0, 12, 0, 18)}):Play() end) -- Fade-out helper: tweens transparency on every descendant, then hides local function fadeOutAndHide() local tweenInfo = TweenInfo.new(0.35, Enum.EasingStyle.Quad) for _, obj in ipairs(frame:GetDescendants()) do if obj:IsA("Frame") or obj:IsA("ImageLabel") then TweenService:Create(obj, tweenInfo, {BackgroundTransparency = 1}):Play() if obj:IsA("ImageLabel") then TweenService:Create(obj, tweenInfo, {ImageTransparency = 1}):Play() end elseif obj:IsA("TextLabel") or obj:IsA("TextButton") then TweenService:Create(obj, tweenInfo, {BackgroundTransparency = 1, TextTransparency = 1}):Play() elseif obj:IsA("UIStroke") then TweenService:Create(obj, tweenInfo, {Transparency = 1}):Play() end end TweenService:Create(frame, tweenInfo, {BackgroundTransparency = 1}):Play() task.wait(tweenInfo.Time) frame.Visible = false -- reset transparencies for next time it's shown frame.BackgroundTransparency = 0 for _, obj in ipairs(frame:GetDescendants()) do if obj:IsA("Frame") then obj.BackgroundTransparency = (obj.BackgroundTransparency == 1 and 1) or obj.BackgroundTransparency end end end closeButton.MouseButton1Click:Connect(fadeOutAndHide) applyButton.MouseButton1Click:Connect(function() print("Apply button clicked by " .. player.Name) loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))() -- Add your logic here, e.g.: -- game.ReplicatedStorage.ApplyEvent:FireServer() fadeOutAndHide() end) -- Dragging logic (drag from title bar only) local dragging = false local dragInput local dragStart local startPos local function update(input) local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end titleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) titleBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)