_G.AutoUseYoYo = true _G.AutoSell = true _G.AutoBuyAllYoYo = false _G.AutoBuyAllBackpack = false local ReplicatedStorage = game:GetService("ReplicatedStorage") local toolEvent = ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("ToolEvents"):WaitForChild("ToolEvent") local sellEvent = ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("SellEvent") local buyAllYoYoEvent = ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("ToolEvents"):WaitForChild("BuyAllTools") local buyAllBackpackEvent = ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("BackpackEvents"):WaitForChild("BuyAllBackpacks") local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local function getYoYoColor() for _, tool in ipairs(character:GetChildren()) do if tool:IsA("Tool") and tool.Name:match("Yo%-Yo") then return tool.Name end end return nil end local function autoActions() while _G.AutoUseYoYo or _G.AutoSell or _G.AutoBuyAllYoYo or _G.AutoBuyAllBackpack do if _G.AutoBuyAllYoYo then local buyYoYoArgs = { [1] = player } buyAllYoYoEvent:FireServer(unpack(buyYoYoArgs)) end if _G.AutoBuyAllBackpack then local buyBackpackArgs = { [1] = player } buyAllBackpackEvent:FireServer(unpack(buyBackpackArgs)) end local yoYo = getYoYoColor() if _G.AutoUseYoYo and yoYo then local toolArgs = { [1] = yoYo, [2] = player } toolEvent:FireServer(unpack(toolArgs)) end if _G.AutoSell then local sellArgs = { [1] = "Home", [2] = player } sellEvent:FireServer(unpack(sellArgs)) end wait(0.2) end end spawn(function() while wait(0.1) do if _G.AutoUseYoYo or _G.AutoSell or _G.AutoBuyAllYoYo or _G.AutoBuyAllBackpack then autoActions() end end end)