local Player = game.Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ScreenGui = Instance.new("ScreenGui") local MainButton = Instance.new("TextButton") local UICorner = Instance.new("UICorner") ScreenGui.Name = "MobileAutoFarm" ScreenGui.Parent = PlayerGui ScreenGui.ResetOnSpawn = false MainButton.Name = "ToggleButton" MainButton.Parent = ScreenGui MainButton.Size = UDim2.new(0, 100, 0, 50) MainButton.Position = UDim2.new(0.5, -50, 0.5, -25) MainButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) MainButton.Text = "Rebirth: OFF" MainButton.TextColor3 = Color3.fromRGB(255, 255, 255) MainButton.Font = Enum.Font.GothamBold MainButton.TextSize = 14 MainButton.Active = true UICorner.CornerRadius = UDim.new(0, 8) UICorner.Parent = MainButton local active = false local dragging, dragInput, dragStart, startPos MainButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainButton.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) MainButton.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 local delta = input.Position - dragStart MainButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) MainButton.MouseButton1Click:Connect(function() active = not active if active then MainButton.Text = "Rebirth: ON" MainButton.BackgroundColor3 = Color3.fromRGB(0, 255, 100) else MainButton.Text = "Rebirth: OFF" MainButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) end end) task.spawn(function() while true do if active then local args = { Player } game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Rebirth"):FireServer(unpack(args)) end task.wait(0.1) end end)