local Player = game.Players.LocalPlayer local Character = Player.Character local RootPart = Character.HumanoidRootPart local Humanoid = Character.Humanoid local Backpack = Player.Backpack _G.GameModule = { ["GloveRemote"] = game.ReplicatedStorage.Remotes.Events.Gloves, ["DNARemote"] = game.ReplicatedStorage.Remotes.Events.DNA } _G.ItemFindModule = { ["Glove"] = nil, ["DNA"] = nil } function nextItem(type) if type == 1 then for i,v in pairs(Player.Glove.Owned:GetChildren()) do if _G.ItemFindModule.Glove == nil then _G.ItemFindModule.Glove = v.Name else if tonumber(_G.ItemFindModule.Glove) < tonumber(v.Name) then _G.ItemFindModule.Glove = v.Name end end end return _G.ItemFindModule.Glove elseif type == 2 then for i,v in pairs(Player.DNA.Owned:GetChildren()) do if _G.ItemFindModule.DNA == nil then _G.ItemFindModule.DNA = v.Name else if tonumber(_G.ItemFindModule.DNA) < tonumber(v.Name) then _G.ItemFindModule.DNA = v.Name end end end return _G.ItemFindModule.DNA end end function sell() _G.ScriptModule.LastPos = Character.HumanoidRootPart.CFrame RootPart.CFrame = CFrame.new(Vector3.new(14.2114697, 3.49311352, 139.002838, 0.677324057, -2.40278766e-08, -0.735684752, -1.94502126e-09, 1, -3.44512081e-08, 0.735684752, 2.47654963e-08, 0.677324057)) wait(0.1) RootPart.CFrame = _G.ScriptModule.LastPos end function autobuy() if _G.ScriptModule.AutobuyType == "All" then if _G.ScriptModule.BuyAlt == 1 then _G.ScriptModule.BuyAlt = 2 _G.GameModule.GloveRemote:FireServer("purchaseall") elseif _G.ScriptModule.BuyAlt == 2 then _G.ScriptModule.BuyAlt = 1 _G.GameModule.DNARemote:FireServer("purchaseall") end elseif _G.ScriptModule.AutobuyType == "Next" then if _G.ScriptModule.BuyAlt == 1 then _G.ScriptModule.BuyAlt = 2 _G.GameModule.GloveRemote:FireServer("purchase",tostring(nextItem(1))) elseif _G.ScriptModule.BuyAlt == 2 then _G.ScriptModule.BuyAlt = 1 _G.GameModule.DNARemote:FireServer("purchase",tostring(nextItem(2))) end end end function isFull() if Player.Strength.MaxStrength.Value == Player.Strength.Strength.Value then return true else return false end end function EquipPunch() if Backpack:FindFirstChild("Punch") then Humanoid:UnequipTools() wait() Humanoid:EquipTool(Backpack:FindFirstChild("Punch")) end end EquipPunch() while _G.ScriptModule.Active == true do wait() EquipPunch() if isFull() == true then sell() wait() autobuy() end EquipPunch() game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool"):Activate() if isFull() == true then sell() end EquipPunch() end