-- Create ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "FarmGUI" screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") -- Main Frame local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 250) frame.Position = UDim2.new(0, 20, 0, 20) frame.BackgroundColor3 = Color3.fromRGB(50, 150, 70) frame.Parent = screenGui -- Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundColor3 = Color3.fromRGB(40, 120, 60) title.Text = "Farm Menu" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextSize = 20 title.Parent = frame -- Button creator function local function createButton(text, order) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -20, 0, 40) button.Position = UDim2.new(0, 10, 0, 50 + (order * 45)) button.BackgroundColor3 = Color3.fromRGB(70, 200, 90) button.Text = text button.TextColor3 = Color3.new(1,1,1) button.Font = Enum.Font.Gotham button.TextSize = 18 button.Parent = frame return button end -- Buttons local plantBtn = createButton("Plant Crop", 0) local waterBtn = createButton("Water Crop", 1) local harvestBtn = createButton("Harvest Crop", 2) local feedBtn = createButton("Feed Animals", 3) -- Button Actions plantBtn.MouseButton1Click:Connect(function() print("Planting crop...") -- Fire a RemoteEvent here if needed end) waterBtn.MouseButton1Click:Connect(function() print("Watering crop...") end) harvestBtn.MouseButton1Click:Connect(function() print("Harvesting...") end) feedBtn.MouseButton1Click:Connect(function() print("Feeding animals...") end)