local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local function activateOvertide() pcall(function() ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("overtide"):FireServer() end) end local screenGui = Instance.new("ScreenGui") screenGui.Name = "CompactTodoGUI" screenGui.Parent = CoreGui screenGui.ResetOnSpawn = false if syn and syn.protect_gui then syn.protect_gui(screenGui) end local button = Instance.new("TextButton") button.Size = UDim2.new(0, 120, 0, 40) -- Более компактная button.Position = UDim2.new(0, 20, 0, 20) -- Начальная позиция button.Text = "activate" button.TextColor3 = Color3.fromRGB(255, 255, 255) button.BackgroundColor3 = Color3.fromRGB(40, 35, 50) button.Font = Enum.Font.GothamBold button.TextSize = 12 button.ZIndex = 999 button.Parent = screenGui button.AutoButtonColor = false button.BorderSizePixel = 0 button.BackgroundTransparency = 0.1 local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = button local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(100, 50, 200)), ColorSequenceKeypoint.new(1, Color3.fromRGB(70, 100, 220)) }) gradient.Rotation = 90 gradient.Parent = button local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(120, 80, 220) stroke.Thickness = 2 stroke.Transparency = 0.5 stroke.Parent = button -- Иконка телепорта (простая) local icon = Instance.new("TextLabel") icon.Size = UDim2.new(0, 20, 0, 20) icon.Position = UDim2.new(0, 5, 0.5, -10) icon.Text = "⚡" icon.TextColor3 = Color3.fromRGB(255, 220, 100) icon.BackgroundTransparency = 1 icon.Font = Enum.Font.GothamBold icon.TextSize = 14 icon.ZIndex = 1000 icon.Parent = button local hoverTweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local clickTweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) button.MouseButton1Click:Connect(function() activateOvertide() local clickTween = TweenService:Create(button, clickTweenInfo, { Size = UDim2.new(0, 115, 0, 38), BackgroundColor3 = Color3.fromRGB(60, 50, 70) }) clickTween:Play() task.wait(0.1) local releaseTween = TweenService:Create(button, clickTweenInfo, { Size = UDim2.new(0, 120, 0, 40), BackgroundColor3 = Color3.fromRGB(40, 35, 50) }) releaseTween:Play() end) button.MouseEnter:Connect(function() local hoverTween = TweenService:Create(button, hoverTweenInfo, { BackgroundColor3 = Color3.fromRGB(50, 45, 65), BackgroundTransparency = 0.05 }) hoverTween:Play() local strokeTween = TweenService:Create(stroke, hoverTweenInfo, { Thickness = 3, Transparency = 0.3 }) strokeTween:Play() end) button.MouseLeave:Connect(function() local leaveTween = TweenService:Create(button, hoverTweenInfo, { BackgroundColor3 = Color3.fromRGB(40, 35, 50), BackgroundTransparency = 0.1 }) leaveTween:Play() local strokeTween = TweenService:Create(stroke, hoverTweenInfo, { Thickness = 2, Transparency = 0.5 }) strokeTween:Play() end) local dragging = false local dragInput, dragStart, startPos button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = button.Position button.BackgroundTransparency = 0.2 input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false button.BackgroundTransparency = 0.1 end end) end end) button.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if dragging and input == dragInput then local delta = input.Position - dragStart button.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) local lastClickTime = 0 button.MouseButton1Click:Connect(function() local currentTime = tick() if currentTime - lastClickTime < 0.3 then local resetTween = TweenService:Create(button, hoverTweenInfo, { Position = UDim2.new(0, 20, 0, 20) }) resetTween:Play() end lastClickTime = currentTime end) warn("started")