local player = game.Players.LocalPlayer -- GUI local gui = Instance.new("ScreenGui") gui.Parent = player:WaitForChild("PlayerGui") -- Botón local button = Instance.new("TextButton") button.Parent = gui button.Size = UDim2.new(0, 80, 0, 80) button.Position = UDim2.new(0.5, -40, 0.7, 0) button.Text = "SALIDA" button.TextScaled = true button.BackgroundColor3 = Color3.fromRGB(255, 0, 0) button.BorderSizePixel = 0 -- Hacerlo redondo local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = button -- Gradiente de colores local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(255,0,0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,100,100)) } gradient.Parent = button -- Variables de movimiento local dragging = false local dragInput local dragStart local startPos -- Detectar inicio de arrastre button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = button.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) -- Movimiento button.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragging 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) -- Detectar click real (sin arrastre) local moved = false button.InputChanged:Connect(function(input) if dragging then moved = true end end) button.MouseButton1Click:Connect(function() if not moved then player:Kick("GG\nTIK TOK DEL CREADOR: PURODELTA4") end moved = false end)