local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local Trophy = workspace:WaitForChild("Trophy") local Enabled = false local FarmSpeed = 1 -- GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "ObbyTrophyFarm" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 260, 0, 140) Frame.Position = UDim2.new(0.5, -130, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 12) Corner.Parent = Frame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 40) Title.BackgroundColor3 = Color3.fromRGB(0, 162, 255) Title.Text = "OBBY TROPHY FARM" Title.TextColor3 = Color3.new(1,1,1) Title.Font = Enum.Font.GothamBold Title.TextSize = 18 Title.Parent = Frame local ToggleBtn = Instance.new("TextButton") ToggleBtn.Size = UDim2.new(0.92, 0, 0, 45) ToggleBtn.Position = UDim2.new(0.04, 0, 0, 50) ToggleBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) ToggleBtn.Text = "FARM: OFF" ToggleBtn.TextColor3 = Color3.new(1,1,1) ToggleBtn.Font = Enum.Font.GothamBold ToggleBtn.TextSize = 18 ToggleBtn.Parent = Frame local BtnCorner = Instance.new("UICorner") BtnCorner.CornerRadius = UDim.new(0, 10) BtnCorner.Parent = ToggleBtn local SpeedLabel = Instance.new("TextLabel") SpeedLabel.Size = UDim2.new(0.92, 0, 0, 25) SpeedLabel.Position = UDim2.new(0.04, 0, 0, 105) SpeedLabel.BackgroundTransparency = 1 SpeedLabel.Text = "Speed: 1.0s" SpeedLabel.TextColor3 = Color3.new(1,1,1) SpeedLabel.Font = Enum.Font.Gotham SpeedLabel.TextSize = 16 SpeedLabel.Parent = Frame local SpeedBox = Instance.new("TextBox") SpeedBox.Size = UDim2.new(0.92, 0, 0, 30) SpeedBox.Position = UDim2.new(0.04, 0, 0, 130) SpeedBox.BackgroundColor3 = Color3.fromRGB(45, 45, 55) SpeedBox.Text = "1" SpeedBox.TextColor3 = Color3.new(1,1,1) SpeedBox.Font = Enum.Font.Gotham SpeedBox.TextSize = 18 SpeedBox.Parent = Frame local SpeedCorner = Instance.new("UICorner") SpeedCorner.CornerRadius = UDim.new(0, 10) SpeedCorner.Parent = SpeedBox -- Toggle ToggleBtn.MouseButton1Click:Connect(function() Enabled = not Enabled ToggleBtn.Text = "FARM: " .. (Enabled and "ON" or "OFF") ToggleBtn.BackgroundColor3 = Enabled and Color3.fromRGB(50, 200, 50) or Color3.fromRGB(200, 50, 50) end) -- Speed Adjust SpeedBox.FocusLost:Connect(function() local val = tonumber(SpeedBox.Text) if val and val > 0 then FarmSpeed = val SpeedLabel.Text = "Speed: " .. val .. "s" else SpeedBox.Text = tostring(FarmSpeed) end end) -- Draggable local dragging, dragInput, dragStart, startPos Title.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) Title.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 dragging and input == dragInput then 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 end) -- Farm Loop task.spawn(function() while true do if Enabled then local char = LocalPlayer.Character if char and char:FindFirstChild("HumanoidRootPart") and char.Humanoid.Health > 0 then local hrp = char.HumanoidRootPart pcall(function() firetouchinterest(hrp, Trophy, 0) task.wait(0.1) firetouchinterest(hrp, Trophy, 1) end) end end task.wait(FarmSpeed) end end) -- Respawn LocalPlayer.CharacterAdded:Connect(function() task.wait(3) end)