CCCPaste
--// Auto Click Script for Roblox
-- Toggle pakai F1
-- Hold click 2 detik, tunggu 5.5 detik, spam 60x, tekan "4" 2x, delay 2 detik, lalu ulang

local UserInputService = game:GetService("UserInputService")
local VirtualInputManager = game:GetService("VirtualInputManager")

local toggle = false

UserInputService.InputBegan:Connect(function(input, gp)
	if gp then return end
	if input.KeyCode == Enum.KeyCode.F2 then
		toggle = not toggle
		if toggle then
			task.spawn(function()
				while toggle do
					-- Klik tahan 2 detik
					VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
					task.wait(2)
					VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)

					-- Tunggu 5.5 detik
					task.wait(5.5)

					-- Spam 60 kali klik
					for i = 1, 70 do
						VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
						VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
						task.wait(0.05)
					end

					-- Tekan tombol "4" dua kali
					for i = 1, 2 do
						VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Four, false, game)
						task.wait(0.05)
						VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Four, false, game)
						task.wait(0.1)
					end

					-- Delay 2 detik sebelum ulang
					task.wait(1)
				end
			end)
		end
	end
end) 

--// Freeze Character tapi biarkan tangan & item (tool) tetap bebas
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local UserInputService = game:GetService("UserInputService")
local frozen = false
local freezeKey = Enum.KeyCode.F2 -- keybind F2

UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.KeyCode == freezeKey then
		frozen = not frozen

		if frozen then
			-- Ambil semua Tool agar tidak ikut di-freeze
			local tools = {}
			for _, item in ipairs(character:GetChildren()) do
				if item:IsA("Tool") then
					table.insert(tools, item)
				end
			end

			-- Freeze bagian tubuh, kecuali tangan dan tool
			for _, part in ipairs(character:GetDescendants()) do
				if part:IsA("BasePart") then
					local isArm = part.Name:find("Arm") or part.Name:find("Hand")
					local isInTool = false
					for _, tool in ipairs(tools) do
						if part:IsDescendantOf(tool) then
							isInTool = true
							break
						end
					end

					if not isArm and not isInTool then
						part.Anchored = true
					end
				end
			end

			humanoidRootPart.Anchored = true
			print("Character dibekukan (tool tetap bisa dipakai).")

		else
			-- Unfreeze semua bagian
			for _, part in ipairs(character:GetDescendants()) do
				if part:IsA("BasePart") then
					part.Anchored = false
				end
			end
			print("Character dilepaskan.")
		end
	end
end)


-- Auto Fish Script
local Players = game:GetService("Players")
local VirtualInputManager = game:GetService("VirtualInputManager")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local MiniGame = Character:WaitForChild("DiamondRod"):WaitForChild("MiniGame")

-- Fungsi untuk klik cepat di tengah layar
local function spamClick()
    task.spawn(function()
        for i = 1, 50 do -- jumlah klik cepat
            VirtualInputManager:SendMouseButtonEvent(
                workspace.CurrentCamera.ViewportSize.X / 2,
                workspace.CurrentCamera.ViewportSize.Y / 2,
                0,
                true,
                game,
                0
            )
            VirtualInputManager:SendMouseButtonEvent(
                workspace.CurrentCamera.ViewportSize.X / 2,
                workspace.CurrentCamera.ViewportSize.Y / 2,
                0,
                false,
                game,
                0
            )
            task.wait(0.01) -- kecepatan klik
        end
    end)
end

-- Deteksi MiniGame dimulai
MiniGame.OnClientEvent:Connect(function(eventType)
    if eventType == "Start" then
        spamClick()
    end
end)


--test aja si
 loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()



--test aja si
-- Auto fire ClickDetector (toggle F1)
local UserInputService = game:GetService("UserInputService")
local targetPath = {"V5","RiceBag","ClickDetector"} -- path di workspace
local spamDelay = 0 -- delay antara klik (atur sesuai kebutuhan)

local function getTarget()
    local node = workspace
    for _, name in ipairs(targetPath) do
        node = node:FindFirstChild(name)
        if not node then return nil end
    end
    return node
end

local enabled = false
local clickThread

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.F1 then
        enabled = not enabled
        print("AutoClick:", enabled and "ON" or "OFF")

        if enabled then
            local target = getTarget()
            if not target then
                warn("Target ClickDetector tidak ditemukan.")
                enabled = false
                return
            end

            clickThread = task.spawn(function()
                while enabled do
                    if target and target.Parent then
                        -- coba panggil fireclickdetector (executor biasanya menyediakan)
                        local ok, err = pcall(function()
                            fireclickdetector(target)
                        end)
                        if not ok then
                            -- fallback: kalau executor tidak punya fireclickdetector, coba invoke property (bisa gagal)
                            pcall(function()
                                if target:IsA("ClickDetector") and target.Parent then
                                    -- nothing native to call here, but keep safe
                                end
                            end)
                        end
                    else
                        warn("Target hilang, mematikan auto.")
                        enabled = false
                        break
                    end
                    task.wait(spamDelay)
                end
            end)
        end
    end
end)


-- Touch fling gui
 
-- Gui to Lua (VIP VERSION)
-- Version: 6.9
 
-- Instances:
 
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Frame_2 = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local TextButton = Instance.new("TextButton")
 
--Properties:
 
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.ResetOnSpawn = false
print("sub to BlueCat")
 
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.388539821, 0, 0.427821517, 0)
Frame.Size = UDim2.new(0, 158, 0, 110)
 
Frame_2.Parent = Frame
Frame_2.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
Frame_2.BorderSizePixel = 0
Frame_2.Size = UDim2.new(0, 158, 0, 25)
 
TextLabel.Parent = Frame_2
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.BorderSizePixel = 0
TextLabel.Position = UDim2.new(0.112792775, 0, -0.0151660154, 0)
TextLabel.Size = UDim2.new(0, 121, 0, 26)
TextLabel.Font = Enum.Font.Sarpanch
TextLabel.Text = "Touch Fling"
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 255)
TextLabel.TextSize = 25.000
 
TextButton.Parent = Frame
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextButton.BorderSizePixel = 0
TextButton.Position = UDim2.new(0.113924049, 0, 0.418181807, 0)
TextButton.Size = UDim2.new(0, 121, 0, 37)
TextButton.Font = Enum.Font.SourceSansItalic
TextButton.Text = "OFF"
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextSize = 20.000
 
-- Scripts:
 
local function IIMAWH_fake_script() -- TextButton.LocalScript 
	local script = Instance.new('LocalScript', TextButton)
 
	local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RunService = game:GetService("RunService")
	local Players = game:GetService("Players")
 
	local toggleButton = script.Parent
	local hiddenfling = false
	local flingThread 
	if not ReplicatedStorage:FindFirstChild("juisdfj0i32i0eidsuf0iok") then
		local detection = Instance.new("Decal")
		detection.Name = "juisdfj0i32i0eidsuf0iok"
		detection.Parent = ReplicatedStorage
	end
 
	local function fling()
		local lp = Players.LocalPlayer
		local c, hrp, vel, movel = nil, nil, nil, 0.1
 
		while hiddenfling do
			RunService.Heartbeat:Wait()
			c = lp.Character
			hrp = c and c:FindFirstChild("HumanoidRootPart")
 
			if hrp then
				vel = hrp.Velocity
				hrp.Velocity = vel * 10000 + Vector3.new(0, 10000, 0)
				RunService.RenderStepped:Wait()
				hrp.Velocity = vel
				RunService.Stepped:Wait()
				hrp.Velocity = vel + Vector3.new(0, movel, 0)
				movel = -movel
			end
		end
	end
 
	toggleButton.MouseButton1Click:Connect(function()
		hiddenfling = not hiddenfling
		toggleButton.Text = hiddenfling and "ON" or "OFF"
 
		if hiddenfling then
			flingThread = coroutine.create(fling)
			coroutine.resume(flingThread)
		else
			hiddenfling = false
		end
	end)
 
end
coroutine.wrap(IIMAWH_fake_script)()
local function QCJQJL_fake_script() -- Frame.LocalScript 
	local script = Instance.new('LocalScript', Frame)
 
	script.Parent.Active = true
	script.Parent.Draggable = true
end
coroutine.wrap(QCJQJL_fake_script)()


-- Auto Press E (Toggle F3)
local UserInputService = game:GetService("UserInputService")
local VirtualInputManager = game:GetService("VirtualInputManager")

local active = false

UserInputService.InputBegan:Connect(function(input, gp)
	if gp then return end
	if input.KeyCode == Enum.KeyCode.F3 then
		active = not active
		print("Auto E:", active and "ON" or "OFF")
	end
end)

task.spawn(function()
	while task.wait(0.05) do -- kecepatan tekan (0.05 = sangat cepat)
		if active then
			VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, game)
			task.wait(0.01)
			VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, game)
		end
	end
end)



for _, v in pairs(game:GetDescendants()) do
 if v:IsA("ProximityPrompt") then
 v.HoldDuration = 0
 end
end


-- Deteksi prompt baru yang muncul di game
game.DescendantAdded:Connect(function(v)
 if v:IsA("ProximityPrompt") then
 v.HoldDuration = 0
 end
end) 


-- Auto Equip "RiceBag" (Toggle F4)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")
local active = false

UserInputService.InputBegan:Connect(function(input, gp)
	if gp then return end
	if input.KeyCode == Enum.KeyCode.F8 then
		active = not active
		print("Auto RiceBag:", active and "ON" or "OFF")
	end
end)

RunService.Heartbeat:Connect(function()
	if not active then return end
	local character = player.Character or player.CharacterAdded:Wait()
	local tool = character:FindFirstChildOfClass("Tool")
	if not tool or tool.Name ~= "RiceBag" then
		local riceBag = backpack:FindFirstChild("RiceBag")
		if riceBag then
			riceBag.Parent = character
		end
	end
end)

--test123
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HRP = Character:WaitForChild("HumanoidRootPart")
local UIS = game:GetService("UserInputService")

local Job = workspace:WaitForChild("Rice Job")

local prompts = {
    Job:GetChildren()[13].ProximityPrompt,
    Job:GetChildren()[7].ProximityPrompt,
    Job.CookPart.ProximityPrompt,
    Job:GetChildren()[11].ProximityPrompt,
    Job:GetChildren()[10].ProximityPrompt,
    Job:GetChildren()[9].ProximityPrompt,
    Job:GetChildren()[8].ProximityPrompt,
    Job:GetChildren()[12].ProximityPrompt
}

local active = false

UIS.InputBegan:Connect(function(input, gp)
	if gp then return end
	if input.KeyCode == Enum.KeyCode.F8 then
		active = not active
		print("Auto TP Prompt:", active and "ON" or "OFF")
	end
end)

task.spawn(function()
	while task.wait(0.3) do
		if active then
			for _, prompt in ipairs(prompts) do
				if not active then break end
				if prompt and prompt.Parent then
					HRP.CFrame = prompt.Parent.CFrame + Vector3.new(0, 3, 0)
					task.wait(0.3)
					fireproximityprompt(prompt)
					task.wait(0.3)
				end
			end
		end
	end
end)


-- Auto Equip Rice Types (Toggle F8) - lebih andal pakai Humanoid:EquipTool
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local StarterPack = game:GetService("StarterPack")

local player = Players.LocalPlayer
local active = false
local riceNames = {"SmallRice", "MediumRice", "LargeRice"}

UserInputService.InputBegan:Connect(function(input, gp)
	if gp then return end
	if input.KeyCode == Enum.KeyCode.F6 then
		active = not active
		print("Auto Rice Equip:", active and "ON" or "OFF")
	end
end)

local function hasRiceEquipped(character)
	if not character then return false end
	local tool = character:FindFirstChildOfClass("Tool")
	return tool and table.find(riceNames, tool.Name)
end

local function findRiceTool()
	-- cek Backpack, Character (jarang), dan StarterPack sebagai cadangan
	local places = { player:FindFirstChild("Backpack"), player.Character, StarterPack }
	for _, container in ipairs(places) do
		if container then
			for _, name in ipairs(riceNames) do
				local t = container:FindFirstChild(name)
				if t and t:IsA("Tool") then
					return t
				end
			end
		end
	end
	return nil
end

local function tryEquip()
	local character = player.Character
	if not character or not active then return end
	if hasRiceEquipped(character) then return end

	local humanoid = character:FindFirstChildOfClass("Humanoid")
	if not humanoid then return end

	local tool = findRiceTool()
	if tool then
		-- pakai Humanoid:EquipTool agar lebih kompatibel
		pcall(function() humanoid:EquipTool(tool) end)
	end
end

-- loop ringan (bukan tiap frame yang super berat)
RunService.Heartbeat:Connect(function()
	if active then
		tryEquip()
	end
end)

-- re-equip saat karakter respawn
player.CharacterAdded:Connect(function()
	-- small delay supaya Humanoid ada
	wait(0.5)
	if active then tryEquip() end
end)