Yingyang005

Blox Fruit V1

Dec 18th, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.21 KB | None | 0 0
  1. local Settings = ...
  2.  
  3. local _ENV = (getgenv or getrenv or getfenv)()
  4.  
  5. local function WaitChilds(path, ...)
  6. local last = path
  7. for _,child in {...} do
  8. last = last:FindFirstChild(child) or last:WaitForChild(child)
  9. end
  10. return last
  11. end
  12.  
  13. local VirtualInputManager = game:GetService("VirtualInputManager")
  14. local CollectionService = game:GetService("CollectionService")
  15. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  16. local TeleportService = game:GetService("TeleportService")
  17. local RunService = game:GetService("RunService")
  18. local Players = game:GetService("Players")
  19.  
  20. local Remotes = ReplicatedStorage:WaitForChild("Remotes")
  21. local Validator = Remotes:WaitForChild("Validator")
  22. local CommF = Remotes:WaitForChild("CommF_")
  23. local CommE = Remotes:WaitForChild("CommE")
  24.  
  25. local ChestModels = workspace:WaitForChild("ChestModels")
  26. local WorldOrigin = workspace:WaitForChild("_WorldOrigin")
  27. local Characters = workspace:WaitForChild("Characters")
  28. local Enemies = workspace:WaitForChild("Enemies")
  29. local Map = workspace:WaitForChild("Map")
  30.  
  31. local EnemySpawns = WorldOrigin:WaitForChild("EnemySpawns")
  32. local Locations = WorldOrigin:WaitForChild("Locations")
  33.  
  34. local RenderStepped = RunService.RenderStepped
  35. local Heartbeat = RunService.Heartbeat
  36. local Stepped = RunService.Stepped
  37. local Player = Players.LocalPlayer
  38.  
  39. local Modules = ReplicatedStorage:WaitForChild("Modules")
  40. local Net = Modules:WaitForChild("Net")
  41.  
  42. local sethiddenproperty = sethiddenproperty or (function(...) return ... end)
  43. local setupvalue = setupvalue or (debug and debug.setupvalue)
  44. local getupvalue = getupvalue or (debug and debug.getupvalue)
  45.  
  46. local BRING_TAG = tostring(math.random(80, 140)) .. "_Bring"
  47.  
  48. local function GetEnemyName(string)
  49. return (string:find("Lv. ") and string:gsub(" %pLv. %d+%p", "") or string):gsub(" %pBoss%p", "")
  50. end
  51.  
  52. local Module = {} do
  53. local CachedBaseParts = {}
  54. local ChachedToolTip = {}
  55. local CachedEnemies = {}
  56. local CachedBring = {}
  57. local CachedChars = {}
  58. local CachedTools = {}
  59. local Items = {}
  60.  
  61. local placeId = game.PlaceId
  62. local HitBoxSize = Vector3.new(50, 50, 50)
  63. local SeaList = {"TravelMain", "TravelDressrosa", "TravelZou"}
  64.  
  65. Module.Sea = (placeId == 2753915549 and 1) or (placeId == 4442272183 and 2) or (placeId == 7449423635 and 3) or 0
  66.  
  67. Module.AttackCooldown = tick()
  68. Module.MaxLevel = 2600
  69. Module.allMobs = { __RaidBoss = {}, __Bones = {}, __Elite = {}, __CakePrince = {} }
  70. Module.Progress = {}
  71. Module.SpawnedFruits = {}
  72. Module.BossesName = {}
  73. Module.EnemyLocations = {}
  74. Module.SpawnLocations = {}
  75.  
  76. Module.FruitsId = {
  77. ["rbxassetid://15060012861"] = "Rocket-Rocket",
  78. ["rbxassetid://15057683975"] = "Spin-Spin",
  79. ["rbxassetid://15104782377"] = "Chop-Chop",
  80. ["rbxassetid://15105281957"] = "Spring-Spring",
  81. ["rbxassetid://15116740364"] = "Bomb-Bomb",
  82. ["rbxassetid://15116696973"] = "Smoke-Smoke",
  83. ["rbxassetid://15107005807"] = "Spike-Spike",
  84. ["rbxassetid://15111584216"] = "Flame-Flame",
  85. ["rbxassetid://15112469964"] = "Falcon-Falcon",
  86. ["rbxassetid://15100433167"] = "Ice-Ice",
  87. ["rbxassetid://15111517529"] = "Sand-Sand",
  88. ["rbxassetid://15111553409"] = "Dark-Dark",
  89. ["rbxassetid://15112600534"] = "Diamond-Diamond",
  90. ["rbxassetid://15100283484"] = "Light-Light",
  91. ["rbxassetid://15104817760"] = "Rubber-Rubber",
  92. ["rbxassetid://15100485671"] = "Barrier-Barrier",
  93. ["rbxassetid://15112333093"] = "Ghost-Ghost",
  94. ["rbxassetid://15105350415"] = "Magma-Magma",
  95. ["rbxassetid://15057718441"] = "Quake-Quake",
  96. ["rbxassetid://15100313696"] = "Buddha-Buddha",
  97. ["rbxassetid://15116730102"] = "Love-Love",
  98. ["rbxassetid://15116967784"] = "Spider-Spider",
  99. ["rbxassetid://14661873358"] = "Sound-Sound",
  100. ["rbxassetid://15100246632"] = "Phoenix-Phoenix",
  101. ["rbxassetid://15112215862"] = "Portal-Portal",
  102. ["rbxassetid://15116747420"] = "Rumble-Rumble",
  103. ["rbxassetid://15116721173"] = "Pain-Pain",
  104. ["rbxassetid://15100384816"] = "Blizzard-Blizzard",
  105. ["rbxassetid://15100299740"] = "Gravity-Gravity",
  106. ["rbxassetid://14661837634"] = "Mammoth-Mammoth",
  107. ["rbxassetid://15708895165"] = "T-Rex-T-Rex",
  108. ["rbxassetid://15100273645"] = "Dough-Dough",
  109. ["rbxassetid://15112263502"] = "Shadow-Shadow",
  110. ["rbxassetid://15100184583"] = "Control-Control",
  111. ["rbxassetid://15106768588"] = "Leopard-Leopard",
  112. ["rbxassetid://15482881956"] = "Kitsune-Kitsune",
  113. ["https://assetdelivery.roblox.com/v1/asset/?id=10395893751"] = "Venom-Venom",
  114. ["https://assetdelivery.roblox.com/v1/asset/?id=10537896371"] = "Dragon-Dragon"
  115. }
  116. Module.Bosses = {
  117. -- Bosses Sea 1
  118. ["Saber Expert"] = {
  119. NoQuest = true,
  120. Position = CFrame.new(-1461, 30, -51)
  121. },
  122. ["The Saw"] = {
  123. RaidBoss = true,
  124. Position = CFrame.new(-690, 15, 1583)
  125. },
  126. ["Greybeard"] = {
  127. RaidBoss = true,
  128. Position = CFrame.new(-4807, 21, 4360)
  129. },
  130. ["The Gorilla King"] = {
  131. IsBoss = true,
  132. Level = 20,
  133. Position = CFrame.new(-1128, 6, -451),
  134. Quest = {"JungleQuest", CFrame.new(-1598, 37, 153)}
  135. },
  136. ["Bobby"] = {
  137. IsBoss = true,
  138. Level = 55,
  139. Position = CFrame.new(-1131, 14, 4080),
  140. Quest = {"BuggyQuest1", CFrame.new(-1140, 4, 3829)}
  141. },
  142. ["Yeti"] = {
  143. IsBoss = true,
  144. Level = 105,
  145. Position = CFrame.new(1185, 106, -1518),
  146. Quest = {"SnowQuest", CFrame.new(1385, 87, -1298)}
  147. },
  148. ["Vice Admiral"] = {
  149. IsBoss = true,
  150. Level = 130,
  151. Position = CFrame.new(-4807, 21, 4360),
  152. Quest = {"MarineQuest2", CFrame.new(-5035, 29, 4326), 2}
  153. },
  154. ["Swan"] = {
  155. IsBoss = true,
  156. Level = 240,
  157. Position = CFrame.new(5230, 4, 749),
  158. Quest = {"ImpelQuest", CFrame.new(5191, 4, 692)}
  159. },
  160. ["Chief Warden"] = {
  161. IsBoss = true,
  162. Level = 230,
  163. Position = CFrame.new(5230, 4, 749),
  164. Quest = {"ImpelQuest", CFrame.new(5191, 4, 692), 2}
  165. },
  166. ["Warden"] = {
  167. IsBoss = true,
  168. Level = 220,
  169. Position = CFrame.new(5230, 4, 749),
  170. Quest = {"ImpelQuest", CFrame.new(5191, 4, 692), 1}
  171. },
  172. ["Magma Admiral"] = {
  173. IsBoss = true,
  174. Level = 350,
  175. Position = CFrame.new(-5694, 18, 8735),
  176. Quest = {"MagmaQuest", CFrame.new(-5319, 12, 8515)}
  177. },
  178. ["Fishman Lord"] = {
  179. IsBoss = true,
  180. Level = 425,
  181. Position = CFrame.new(61350, 31, 1095),
  182. Quest = {"FishmanQuest", CFrame.new(61122, 18, 1567)}
  183. },
  184. ["Wysper"] = {
  185. IsBoss = true,
  186. Level = 500,
  187. Position = CFrame.new(-7927, 5551, -637),
  188. Quest = {"SkyExp1Quest", CFrame.new(-7861, 5545, -381)}
  189. },
  190. ["Thunder God"] = {
  191. IsBoss = true,
  192. Level = 575,
  193. Position = CFrame.new(-7751, 5607, -2315),
  194. Quest = {"SkyExp2Quest", CFrame.new(-7903, 5636, -1412)}
  195. },
  196. ["Cyborg"] = {
  197. IsBoss = true,
  198. Level = 675,
  199. Position = CFrame.new(6138, 10, 3939),
  200. Quest = {"FountainQuest", CFrame.new(5258, 39, 4052)}
  201. },
  202.  
  203. -- Bosses Sea 2
  204. ["Don Swan"] = {
  205. RaidBoss = true,
  206. Position = CFrame.new(2289, 15, 808)
  207. },
  208. ["Cursed Captain"] = {
  209. RaidBoss = true,
  210. Position = CFrame.new(912, 186, 33591)
  211. },
  212. ["Darkbeard"] = {
  213. RaidBoss = true,
  214. Position = CFrame.new(3695, 13, -3599)
  215. },
  216. ["Diamond"] = {
  217. IsBoss = true,
  218. Level = 750,
  219. Position = CFrame.new(-1569, 199, -31),
  220. Quest = {"Area1Quest", CFrame.new(-427, 73, 1835)}
  221. },
  222. ["Jeremy"] = {
  223. IsBoss = true,
  224. Level = 850,
  225. Position = CFrame.new(2316, 449, 787),
  226. Quest = {"Area2Quest", CFrame.new(635, 73, 919)}
  227. },
  228. ["Fajita"] = {
  229. IsBoss = true,
  230. Level = 925,
  231. Position = CFrame.new(-2086, 73, -4208),
  232. Quest = {"MarineQuest3", CFrame.new(-2441, 73, -3219)}
  233. },
  234. ["Smoke Admiral"] = {
  235. IsBoss = true,
  236. Level = 1150,
  237. Position = CFrame.new(-5078, 24, -5352),
  238. Quest = {"IceSideQuest", CFrame.new(-6061, 16, -4904)}
  239. },
  240. ["Awakened Ice Admiral"] = {
  241. IsBoss = true,
  242. Level = 1400,
  243. Position = CFrame.new(6473, 297, -6944),
  244. Quest = {"FrostQuest", CFrame.new(5668, 28, -6484)}
  245. },
  246. ["Tide Keeper"] = {
  247. IsBoss = true,
  248. Level = 1475,
  249. Position = CFrame.new(-3711, 77, -11469),
  250. Quest = {"ForgottenQuest", CFrame.new(-3056, 240, -10145)}
  251. },
  252.  
  253. -- Bosses Sea 3
  254. ["Cake Prince"] = {
  255. RaidBoss = true,
  256. Position = CFrame.new(-2103, 70, -12165)
  257. },
  258. ["Dough King"] = {
  259. RaidBoss = true,
  260. Position = CFrame.new(-2103, 70, -12165)
  261. },
  262. ["rip_indra True Form"] = {
  263. RaidBoss = true,
  264. Position = CFrame.new(-5333, 424, -2673)
  265. },
  266. ["Stone"] = {
  267. IsBoss = true,
  268. Level = 1550,
  269. Position = CFrame.new(-1049, 40, 6791),
  270. Quest = {"PiratePortQuest", CFrame.new(-291, 44, 5580)}
  271. },
  272. ["Island Empress"] = {
  273. IsBoss = true,
  274. Level = 1675,
  275. Position = CFrame.new(5730, 602, 199),
  276. Quest = {"AmazonQuest2", CFrame.new(5448, 602, 748)}
  277. },
  278. ["Kilo Admiral"] = {
  279. IsBoss = true,
  280. Level = 1750,
  281. Position = CFrame.new(2904, 509, -7349),
  282. Quest = {"MarineTreeIsland", CFrame.new(2485, 74, -6788)}
  283. },
  284. ["Captain Elephant"] = {
  285. IsBoss = true,
  286. Level = 1875,
  287. Position = CFrame.new(-13393, 319, -8423),
  288. Quest = {"DeepForestIsland", CFrame.new(-13233, 332, -7626)}
  289. },
  290. ["Beautiful Pirate"] = {
  291. IsBoss = true,
  292. Level = 1950,
  293. Position = CFrame.new(5241, 23, 129),
  294. Quest = {"DeepForestIsland2", CFrame.new(-12682, 391, -9901)}
  295. },
  296. ["Cake Queen"] = {
  297. IsBoss = true,
  298. Level = 2175,
  299. Position = CFrame.new(-710, 382, -11150),
  300. Quest = {"IceCreamIslandQuest", CFrame.new(-818, 66, -10964)}
  301. },
  302. ["Longma"] = {
  303. NoQuest = true,
  304. Position = CFrame.new(-10218, 333, -9444)
  305. }
  306. }
  307. Module.Shop = {
  308. {"Frags", {{"Race Reroll", {"BlackbeardReward", "Reroll", "2"}}, {"Reset Stats", {"BlackbeardReward", "Refund", "2"}}}},
  309. {"Fighting Style", {
  310. {"Buy Black Leg", {"BuyBlackLeg"}},
  311. {"Buy Electro", {"BuyElectro"}},
  312. {"Buy Fishman Karate", {"BuyFishmanKarate"}},
  313. {"Buy Dragon Claw", {"BlackbeardReward", "DragonClaw", "2"}},
  314. {"Buy Superhuman", {"BuySuperhuman"}},
  315. {"Buy Death Step", {"BuyDeathStep"}},
  316. {"Buy Sharkman Karate", {"BuySharkmanKarate"}},
  317. {"Buy Electric Claw", {"BuyElectricClaw"}},
  318. {"Buy Dragon Talon", {"BuyDragonTalon"}},
  319. {"Buy GodHuman", {"BuyGodhuman"}},
  320. {"Buy Sanguine Art", {"BuySanguineArt"}}
  321. -- {"Buy Divine Art", {"BuyDivineArt"}}
  322. }},
  323. {"Ability Teacher", {
  324. {"Buy Geppo", {"BuyHaki", "Geppo"}},
  325. {"Buy Buso", {"BuyHaki", "Buso"}},
  326. {"Buy Soru", {"BuyHaki", "Soru"}},
  327. {"Buy Ken", {"KenTalk", "Buy"}}
  328. }},
  329. {"Sword", {
  330. {"Buy Katana", {"BuyItem", "Katana"}},
  331. {"Buy Cutlass", {"BuyItem", "Cutlass"}},
  332. {"Buy Dual Katana", {"BuyItem", "Dual Katana"}},
  333. {"Buy Iron Mace", {"BuyItem", "Iron Mace"}},
  334. {"Buy Triple Katana", {"BuyItem", "Triple Katana"}},
  335. {"Buy Pipe", {"BuyItem", "Pipe"}},
  336. {"Buy Dual-Headed Blade", {"BuyItem", "Dual-Headed Blade"}},
  337. {"Buy Soul Cane", {"BuyItem", "Soul Cane"}},
  338. {"Buy Bisento", {"BuyItem", "Bisento"}}
  339. }},
  340. {"Gun", {
  341. {"Buy Musket", {"BuyItem", "Musket"}},
  342. {"Buy Slingshot", {"BuyItem", "Slingshot"}},
  343. {"Buy Flintlock", {"BuyItem", "Flintlock"}},
  344. {"Buy Refined Slingshot", {"BuyItem", "Refined Slingshot"}},
  345. {"Buy Refined Flintlock", {"BuyItem", "Refined Flintlock"}},
  346. {"Buy Cannon", {"BuyItem", "Cannon"}},
  347. {"Buy Kabucha", {"BlackbeardReward", "Slingshot", "2"}}
  348. }},
  349. {"Accessories", {
  350. {"Buy Black Cape", {"BuyItem", "Black Cape"}},
  351. {"Buy Swordsman Hat", {"BuyItem", "Swordsman Hat"}},
  352. {"Buy Tomoe Ring", {"BuyItem", "Tomoe Ring"}}
  353. }},
  354. {"Race", {{"Ghoul Race", {"Ectoplasm", "Change", 4}}, {"Cyborg Race", {"CyborgTrainer", "Buy"}}}}
  355. }
  356.  
  357. function EnableBuso()
  358. local Char = Player.Character
  359. if Settings.AutoBuso and Module.IsAlive(Char) and not Char:FindFirstChild("HasBuso") then
  360. Module.FireRemote("Buso")
  361. end
  362. end
  363.  
  364. function VerifyTool(Name: string): boolean
  365. local cached = CachedTools[Name]
  366. if cached and cached.Parent then
  367. return true
  368. end
  369.  
  370. local Char = Player.Character
  371. local Bag = Player.Backpack
  372.  
  373. if Char then
  374. local Tool = Char:FindFirstChild(Name) or Bag:FindFirstChild(Name)
  375.  
  376. if Tool then
  377. CachedTools[Name] = Tool
  378. return true
  379. end
  380. end
  381.  
  382. return false
  383. end
  384.  
  385. function VerifyToolTip(Type: string): Instance?
  386. local cached = ChachedToolTip[Type]
  387. if cached and cached.Parent then
  388. return cached
  389. end
  390.  
  391. for _,tool in Player.Backpack:GetChildren() do
  392. if tool:IsA("Tool") and tool.ToolTip == Type then
  393. ChachedToolTip[Type] = tool
  394. return tool
  395. end
  396. end
  397.  
  398. if not Module.IsAlive(Player.Character) then
  399. return nil
  400. end
  401.  
  402. for _,tool in Player.Character:GetChildren() do
  403. if tool:IsA("Tool") and tool.ToolTip == Type then
  404. ChachedToolTip[Type] = tool
  405. return tool
  406. end
  407. end
  408.  
  409. return nil
  410. end
  411.  
  412. function noSit()
  413. local Char = Player.Character
  414. if Module.IsAlive(Char) and Char.Humanoid.Sit then
  415. Char.Humanoid.Sit = false
  416. end
  417. end
  418.  
  419. local function ToDictionary(tab: table): table
  420. for _, String in ipairs(tab) do
  421. tab[String] = true
  422. table.remove(tab, _)
  423. end
  424. return tab
  425. end
  426.  
  427. function Module.TravelTo(Sea: number?): (nil)
  428. if SeaList[Sea] then
  429. Module.FireRemote(SeaList[Sea])
  430. end
  431. end
  432.  
  433. function Module.newCachedEnemy(Name, Enemy)
  434. CachedEnemies[Name] = Enemy
  435. end
  436.  
  437. function Module.Rejoin(): (nil)
  438. task.spawn(TeleportService.TeleportToPlaceInstance, TeleportService, game.PlaceId, game.JobId, Player)
  439. end
  440.  
  441. function Module.IsAlive(Char: Model?): boolean
  442. if not Char then
  443. return nil
  444. end
  445.  
  446. if CachedChars[Char] then
  447. return CachedChars[Char].Health > 0
  448. end
  449.  
  450. local Hum = Char:FindFirstChildOfClass("Humanoid")
  451. CachedChars[Char] = Hum
  452. return Hum and Hum.Health > 0
  453. end
  454.  
  455. function Module.FireRemote(...): any
  456. return CommF:InvokeServer(...)
  457. end
  458.  
  459. function Module.IsFruit(Part: BasePart): Instance?
  460. return (Part.Name == "Fruit " or Part:GetAttribute("OriginalName")) and Part:FindFirstChild("Handle")
  461. end
  462.  
  463. function Module.IsBoss(Name: string): boolean
  464. return Module.Bosses[Name] and true
  465. end
  466.  
  467. function Module.UseSkills(Target: BasePart, Skills: table?): (nil)
  468. if Player:DistanceFromCharacter(Target.Position) >= 120 then
  469. return nil
  470. end
  471.  
  472. Module.Hooking:SetTarget(Target)
  473.  
  474. for Skill, Enabled in Skills do
  475. if Enabled then
  476. VirtualInputManager:SendKeyEvent(true, Skill, false, game)
  477. VirtualInputManager:SendKeyEvent(false, Skill, false, game)
  478. end
  479. end
  480. end
  481.  
  482. function Module.KillAura(Distance: number?): (nil)
  483. Distance = Distance or 1500
  484.  
  485. for _, Enemy in ipairs(Enemies:GetChildren()) do
  486. local PrimaryPart = Enemy.PrimaryPart
  487.  
  488. if Module.IsAlive(Enemy) and PrimaryPart and Player:DistanceFromCharacter(PrimaryPart.Position) < Distance then
  489. PrimaryPart.CanCollide = false
  490. PrimaryPart.Size = Vector3.new(60, 60, 60)
  491. Enemy.Humanoid:ChangeState(15)
  492. Enemy.Humanoid.Health = 0
  493. end
  494. end
  495.  
  496. pcall(sethiddenproperty, Player, "SimulationRadius", math.huge)
  497. end
  498.  
  499. function Module.IsSpawned(Enemy)
  500. local Cached = Module.SpawnLocations[Enemy]
  501.  
  502. if Cached then
  503. return Cached:GetAttribute("Active") or Module:GetEnemyByTag(Enemy)
  504. end
  505.  
  506. return Module:GetEnemyByTag(Enemy)
  507. end
  508.  
  509. function Module:ServerHop(Region: string?, MaxPlayers: number?): (nil)
  510. MaxPlayers = MaxPlayers or self.SH_MaxPlrs or 8
  511. -- Region = Region or self.SH_Region or "Singapore"
  512.  
  513. local ServerBrowser = ReplicatedStorage.__ServerBrowser
  514.  
  515. for i = 1, 100 do
  516. local Servers = ServerBrowser:InvokeServer(i)
  517. for id,info in pairs(Servers) do
  518. if id ~= game.JobId and info["Count"] <= MaxPlayers then
  519. task.spawn(ServerBrowser.InvokeServer, ServerBrowser, "teleport", id)
  520. end
  521. end
  522. end
  523. end
  524.  
  525. function Module:GetEnemy(Name: string): Instance?
  526. return self.EnemySpawned[Name]
  527. end
  528.  
  529. function Module:GetClosestEnemy(Name: string): Instance?
  530. local Cached = CachedEnemies[Name]
  531. local Mobs = self.allMobs[Name]
  532.  
  533. if self.IsAlive(Cached) or (not Mobs) then
  534. return Cached
  535. end
  536.  
  537. local Position = (Player.Character or Player.CharacterAdded:Wait()).PrimaryPart.Position
  538. local Distance, Nearest = math.huge
  539.  
  540. for _, Enemy in Mobs do
  541. if self.IsAlive(Enemy) and Enemy.PrimaryPart then
  542. local Magnitude = (Enemy.PrimaryPart.Position - Position).Magnitude
  543. if Magnitude < Distance then
  544. Distance, Nearest = Magnitude, Enemy
  545. end
  546. end
  547. end
  548.  
  549. if Nearest then
  550. self.newCachedEnemy(Name, Nearest)
  551. return Nearest
  552. end
  553. end
  554.  
  555. function Module:GetEnemyByList(List: table): Instance?
  556. for _, Name in List do
  557. local Cached = CachedEnemies[Name]
  558.  
  559. if self.IsAlive(Cached) then
  560. return Cached
  561. end
  562.  
  563. local Mobs = self.allMobs[Name]
  564.  
  565. if Mobs then
  566. for _, Enemy in Mobs do
  567. if self.IsAlive(Enemy) then
  568. self.newCachedEnemy(Name, Enemy)
  569. return Enemy
  570. end
  571. end
  572. end
  573. end
  574. end
  575.  
  576. function Module:BringEnemies(ToEnemy: Instance, SuperBring: boolean?): (nil)
  577. if not self.IsAlive(ToEnemy) or not ToEnemy.PrimaryPart then
  578. return nil
  579. end
  580.  
  581. pcall(sethiddenproperty, Player, "SimulationRadius", math.huge)
  582.  
  583. if Settings.BringMobs then
  584. local Position = (Player.Character or Player.CharacterAdded:Wait()).PrimaryPart.Position
  585. local Target = ToEnemy.PrimaryPart.CFrame
  586.  
  587. if not CachedBring[ToEnemy.Name] or (Target.Position - CachedBring[ToEnemy.Name].Position).Magnitude > 5 then
  588. CachedBring[ToEnemy.Name] = Target
  589. end
  590.  
  591. for _, Enemy in self.allMobs[ToEnemy.Name] do
  592. if Enemy:HasTag(BRING_TAG) then continue end
  593.  
  594. local PrimaryPart = Enemy.PrimaryPart
  595. if self.IsAlive(Enemy) and PrimaryPart then
  596. if (Position - PrimaryPart.Position).Magnitude < Settings.BringDistance then
  597. PrimaryPart.Size = HitBoxSize
  598. PrimaryPart.CanCollide = false
  599. Enemy.Humanoid.WalkSpeed = 0
  600. Enemy.Humanoid.JumpPower = 0
  601. Enemy:AddTag(BRING_TAG)
  602. end
  603. end
  604. end
  605. else
  606. if not CachedBring[ToEnemy] then
  607. CachedBring[ToEnemy] = ToEnemy.PrimaryPart.CFrame
  608. end
  609.  
  610. ToEnemy.PrimaryPart.CFrame = CachedBring[ToEnemy]
  611. end
  612. end
  613.  
  614. function Module:GetRaidIsland(): Instance?
  615. if self.RaidIsland then
  616. return self.RaidIsland
  617. end
  618.  
  619. local list = {}
  620.  
  621. for _,Island in ipairs(Locations:GetChildren()) do
  622. if Island:IsA("BasePart") and Player:DistanceFromCharacter(Island.Position) < 3000 then
  623. list[Island.Name] = Island
  624. end
  625. end
  626.  
  627. local Island = list["Island 5"] or list["Island 4"] or list["Island 3"] or list["Island 2"] or list["Island 1"]
  628.  
  629. self.RaidIsland = Island
  630. return Island
  631. end
  632.  
  633. function Module:GetProgress(Tag, ...)
  634. local Progress = self.Progress
  635. local entry = Progress[Tag]
  636.  
  637. if entry and (tick() - entry.debounce) < 1.6 then
  638. return entry.result
  639. end
  640.  
  641. local result = self.FireRemote(...)
  642.  
  643. if entry then
  644. entry.result = result
  645. entry.debounce = tick()
  646. else
  647. Progress[Tag] = {
  648. debounce = tick(),
  649. result = result
  650. }
  651. end
  652.  
  653. return result
  654. end
  655.  
  656. Module.EnemySpawned = setmetatable({}, {
  657. __index = function(self, index)
  658. return Module:GetClosestEnemy(index)
  659. end,
  660. __call = function(self, index)
  661. if type(index) == "table" then
  662. return Module:GetEnemyByList(index)
  663. end
  664.  
  665. local Cached = CachedEnemies[index]
  666.  
  667. if Module.IsAlive(Cached) then
  668. return Cached
  669. end
  670.  
  671. return self[index]
  672. end
  673. })
  674.  
  675. Module.FruitsName = setmetatable({}, {
  676. __index = function(self, Fruit)
  677. local Ids = Module.FruitsId
  678. local Name = Fruit.Name
  679.  
  680. if Name ~= "Fruit " then
  681. rawset(self, Fruit, Name)
  682. return Name
  683. end
  684.  
  685. local FruitHandle = WaitChilds(Fruit, "Fruit", "Fruit")
  686.  
  687. if FruitHandle and FruitHandle:IsA("MeshPart") then
  688. local RealName = Ids[FruitHandle.MeshId]
  689.  
  690. if RealName and type(RealName) == "string" then
  691. rawset(self, Fruit, "Fruit [ " .. RealName .. " ]")
  692. return rawget(self, Fruit)
  693. end
  694. end
  695.  
  696. rawset(self, Fruit, "Fruit [ ??? ]")
  697. return "Fruit [ ??? ]"
  698. end
  699. })
  700.  
  701. Module.MoonId = setmetatable({}, {
  702. __index = function(self, index)
  703. return (Lighting.Sky.MoonTextureId == "http://www.roblox.com/asset/?id=" .. index)
  704. end
  705. })
  706.  
  707. Module.EquipTool = setmetatable({}, {
  708. __call = function(self, Name, byTip)
  709. local Char = Player.Character
  710. if Module.IsAlive(Char) then
  711. local Equipped = self.Equipped
  712.  
  713. if Equipped and Equipped.Parent and Equipped[byTip and "ToolTip" or "Name"] == Name then
  714. if Equipped.Parent ~= Char then
  715. Char:WaitForChild("Humanoid"):EquipTool(Equipped)
  716. end
  717. return nil
  718. end
  719.  
  720. if Name and not byTip then
  721. local Tool = Player.Backpack:FindFirstChild(Name)
  722. if Tool then
  723. self.Equipped = Tool
  724. Char:WaitForChild("Humanoid"):EquipTool(Tool)
  725. end
  726. return nil
  727. end
  728.  
  729. local ToolTip = (byTip and Name) or Settings.FarmTool
  730. for _,Tool in Player.Backpack:GetChildren() do
  731. if Tool:IsA("Tool") and Tool.ToolTip == ToolTip then
  732. self.Equipped = Tool
  733. Char:WaitForChild("Humanoid"):EquipTool(Tool)
  734. break
  735. end
  736. end
  737. end
  738. end
  739. })
  740.  
  741. Module.Chests = setmetatable({}, {
  742. __call = function(self, Tier)
  743. if self.Chest and not self.Chest:GetAttribute("IsDisabled") then
  744. return self.Chest
  745. end
  746.  
  747. if not Module.IsAlive(Player.Character) then
  748. return nil
  749. end
  750.  
  751. local Chests = CollectionService:GetTagged("_ChestTagged")
  752. local Position = Player.Character.PrimaryPart.Position
  753.  
  754. local Distance, Nearest = math.huge
  755.  
  756. for _, Chest in ipairs(Chests) do
  757. local Magnitude = (Chest:GetPivot().Position - Position).Magnitude
  758. if not Chest:GetAttribute("IsDisabled") and Magnitude < Distance then
  759. Distance, Nearest = Magnitude, Chest
  760. end
  761. end
  762.  
  763. self.Chest = Nearest
  764. return Nearest
  765. end
  766. })
  767.  
  768. Module.PirateRaid = 0 do
  769. Module.PirateRaidEnemies = {}
  770.  
  771. local Spawn = Vector3.new(-5556, 314, -2988)
  772. local BlackList = ToDictionary({"rip_indra True Form", "Blank Buddy"})
  773.  
  774. local IsPirateRaidEnemy = function(Enemy)
  775. local PrimaryPart = Enemy.PrimaryPart
  776.  
  777. if Module.IsAlive(Enemy) and not BlackList[Enemy.Name] then
  778. if PrimaryPart and (PrimaryPart.Position - Spawn).Magnitude < 700 then
  779. table.insert(Module.PirateRaidEnemies, Enemy)
  780. Module.PirateRaid = tick()
  781. end
  782. end
  783. end
  784.  
  785. CollectionService:GetInstanceAddedSignal("BasicMob"):Connect(IsPirateRaidEnemy)
  786. for _, Mob in CollectionService:GetTagged("BasicMob") do IsPirateRaidEnemy(Mob) end
  787. end
  788.  
  789. task.spawn(function()
  790. local allMobs = Module.allMobs
  791.  
  792. local Elites = ToDictionary({ "Deandre", "Diablo", "Urban" })
  793. local Bones = ToDictionary({ "Reborn Skeleton", "Living Zombie", "Demonic Soul", "Posessed Mummy" })
  794. local CakePrince = ToDictionary({ "Head Baker", "Baking Staff", "Cake Guard", "Cookie Crafter" })
  795.  
  796. function Module:GetClosestByTag(Tag)
  797. local Cached = CachedEnemies[Tag]
  798. local Mobs = allMobs[Tag]
  799.  
  800. if Cached and Cached.Parent and self.IsAlive(Cached) then
  801. return Cached
  802. elseif not Mobs or #Mobs < 1 then
  803. return nil
  804. end
  805.  
  806. local Position = (Player.Character or Player.CharacterAdded:Wait()).PrimaryPart.Position
  807. local Distance, Nearest = math.huge
  808.  
  809. for _, Enemy in Mobs do
  810. local PrimaryPart = Enemy.PrimaryPart
  811.  
  812. if PrimaryPart and self.IsAlive(Enemy) then
  813. local Magnitude = (Position - PrimaryPart.Position).Magnitude
  814.  
  815. if Magnitude < 20 then
  816. CachedEnemies[Tag] = Enemy
  817. return Enemy
  818. elseif Magnitude < Distance then
  819. Distance, Nearest = Magnitude, Enemy
  820. end
  821. end
  822. end
  823.  
  824. if Nearest then
  825. CachedEnemies[Tag] = Nearest
  826. return Nearest
  827. end
  828. end
  829.  
  830. function Module:GetEnemyByTag(Tag)
  831. local Mobs = allMobs[Tag]
  832. if not Mobs then return end
  833.  
  834. for _, Enemy in ipairs(Mobs) do
  835. if self.IsAlive(Enemy) then
  836. return Enemy
  837. end
  838. end
  839. end
  840.  
  841. local function MobAdded(Enemy)
  842. local EnemyName = Enemy.Name
  843. local RaidBoss = Enemy:GetAttribute("RaidBoss")
  844.  
  845. if RaidBoss then
  846. table.insert(allMobs.__RaidBoss, Enemy)
  847. elseif Elites[EnemyName] then
  848. table.insert(allMobs.__Elite, Enemy)
  849. elseif Bones[EnemyName] then
  850. table.insert(allMobs.__Bones, Enemy)
  851. elseif CakePrince[EnemyName] then
  852. table.insert(allMobs.__CakePrince, Enemy)
  853. end
  854.  
  855. allMobs[EnemyName] = allMobs[EnemyName] or {}
  856. table.insert(allMobs[EnemyName], Enemy)
  857. end
  858.  
  859. local function Bring(Enemy)
  860. local Character = Player.Character
  861. local Humanoid = Enemy:WaitForChild("Humanoid")
  862. local RootPart = Enemy:WaitForChild("HumanoidRootPart")
  863. local Target = CachedBring[Enemy.Name]
  864.  
  865. while Character and RootPart and Humanoid and Humanoid.Health > 0 do
  866. if Player:DistanceFromCharacter(RootPart.Position) < Settings.BringDistance then
  867. RootPart.CFrame = Target
  868. else
  869. break
  870. end
  871. task.wait()
  872. end
  873. end
  874.  
  875. for _, Enemy in CollectionService:GetTagged("BasicMob") do MobAdded(Enemy) end
  876. CollectionService:GetInstanceAddedSignal("BasicMob"):Connect(MobAdded)
  877. CollectionService:GetInstanceAddedSignal(BRING_TAG):Connect(Bring)
  878. end)
  879.  
  880. task.spawn(function()
  881. local BossesName = Module.BossesName
  882. local Fruits = Module.SpawnedFruits
  883.  
  884. workspace.ChildAdded:Connect(function(Part)
  885. if Module.IsFruit(Part) then
  886. table.insert(Fruits, Part)
  887. Part:GetPropertyChangedSignal("Parent"):Once(function()
  888. table.remove(Fruits, table.find(Fruits, Part))
  889. end)
  890. end
  891. end)
  892.  
  893. for Name, _ in Module.Bosses do
  894. table.insert(BossesName, Name)
  895. end
  896.  
  897. for _, Part in workspace:GetChildren() do
  898. if Module.IsFruit(Part) then
  899. table.insert(Fruits, Part)
  900. Part:GetPropertyChangedSignal("Parent"):Once(function()
  901. table.remove(Fruits, table.find(Fruits, Part))
  902. end)
  903. end
  904. end
  905. end)
  906.  
  907. task.spawn(function()
  908. local SpawnLocations = Module.SpawnLocations
  909. local EnemyLocations = Module.EnemyLocations
  910.  
  911. local function NewIslandAdded(Island)
  912. if Island.Name:find("Island") then
  913. Module.RaidIsland = nil
  914. end
  915. end
  916.  
  917. local function NewSpawn(Part)
  918. local EnemyName = GetEnemyName(Part.Name)
  919.  
  920. if not EnemyLocations[EnemyName] then
  921. EnemyLocations[EnemyName] = {}
  922. end
  923.  
  924. table.insert(EnemyLocations[EnemyName], Part.CFrame + Vector3.new(0, 25, 0))
  925. SpawnLocations[EnemyName] = Part
  926. end
  927.  
  928. for _, Spawn in EnemySpawns:GetChildren() do NewSpawn(Spawn) end
  929. EnemySpawns.ChildAdded:Connect(NewSpawn)
  930. Locations.ChildAdded:Connect(NewIslandAdded)
  931. end)
  932.  
  933. task.spawn(function()
  934. local Inventory = WaitChilds(Player, "PlayerGui", "Main", "UIController", "Inventory")
  935. local ItemList = getupvalue(require(Inventory).UpdateSort, 2)
  936.  
  937. function Module:GetMaterial(index: string?): number
  938. local Material = self.Inventory[index]
  939. return (Material and Material.details.Count) or 0
  940. end
  941.  
  942. function Module:ItemMastery(index: string?): number
  943. local Item = self.Inventory[index]
  944. return (Item and Item.details.Mastery) or 0
  945. end
  946.  
  947. function Module:UpdateItem(Item: table): (nil)
  948. local Details = Item.details
  949.  
  950. if Details and Details.Name then
  951. local Name = Details.Name
  952.  
  953. self.Inventory[Name] = Item
  954.  
  955. if not self.Unlocked[Name] then
  956. self.Unlocked[Name] = true
  957. end
  958.  
  959. if Details.Mastery then
  960. self.ItemsMastery[Name] = Details.Mastery
  961. end
  962. end
  963. end
  964.  
  965. local function OnClientEvent(Method, ...)
  966. if Method == "ItemChanged" then
  967. Module:UpdateItem(...)
  968. end
  969. end
  970.  
  971. Module.ItemsMastery = {}
  972. Module.Inventory = {}
  973. Module.Unlocked = {}
  974.  
  975. for _, Item in ipairs(ItemList) do
  976. Module:UpdateItem(Item)
  977. end
  978.  
  979. CommE.OnClientEvent:Connect(OnClientEvent)
  980. end)
  981.  
  982. task.spawn(function()
  983. local DeathM = require(WaitChilds(ReplicatedStorage, "Effect", "Container", "Death"))
  984. local CameraShaker = require(WaitChilds(ReplicatedStorage, "Util", "CameraShaker"))
  985.  
  986. CameraShaker:Stop()
  987. if hookfunction then
  988. hookfunction(DeathM, function(...) return ... end)
  989. end
  990. end)
  991.  
  992. Module.Hooking = (function()
  993. local module = {}
  994.  
  995. local Enabled = _ENV.rz_EnabledOptions;
  996. local IsAlive = Module.IsAlive;
  997.  
  998. local NextEnemy = nil;
  999. local NextTarget = nil;
  1000. local UpdateDebounce = 0;
  1001.  
  1002. local GetPlayers = Players.GetPlayers
  1003. local GetChildren = Enemies.GetChildren
  1004. local Skills = ToDictionary({"Z", "X", "C", "V", "F"})
  1005.  
  1006. local function CanAttack(player)
  1007. return player.Team and (player.Team.Name == "Pirates" or player.Team ~= Player.Team)
  1008. end
  1009.  
  1010. local function GetNextTarget(Mode)
  1011. if Enabled.Mastery or Enabled.Sea or Enabled.WoodPlanks then
  1012. return NextEnemy
  1013. end
  1014.  
  1015. if (Mode and _ENV[Mode]) then
  1016. return NextTarget
  1017. end
  1018. end
  1019.  
  1020. local function UpdateTarget()
  1021. if (tick() - UpdateDebounce) < 0.5 then
  1022. return nil
  1023. end
  1024.  
  1025. local Position = Player.Character.PrimaryPart.Position
  1026.  
  1027. local Players = Players:GetPlayers()
  1028. local Enemies = Enemies:GetChildren()
  1029.  
  1030. local Distance, Nearest = 750
  1031.  
  1032. if #Players > 1 then
  1033. for _, player in ipairs(Players) do
  1034. if player ~= Player and CanAttack(player) and IsAlive(player.Character) then
  1035. local UpperTorso = player.Character:FindFirstChild("UpperTorso")
  1036. local Magnitude = UpperTorso and (UpperTorso.Position - Position).Magnitude
  1037.  
  1038. if UpperTorso and Magnitude < Distance then
  1039. Distance, Nearest = Magnitude, UpperTorso
  1040. end
  1041. end
  1042. end
  1043. end
  1044. if #Enemies > 0 and not Settings.NoAimMobs then
  1045. for _, Enemy in ipairs(Enemies) do
  1046. local UpperTorso = Enemy:FindFirstChild("UpperTorso")
  1047. if UpperTorso and IsAlive(Enemy) then
  1048. local Magnitude = (UpperTorso.Position - Position).Magnitude
  1049. if Magnitude < Distance then
  1050. Distance, Nearest = Magnitude, UpperTorso
  1051. end
  1052. end
  1053. end
  1054. end
  1055.  
  1056. NextTarget, UpdateDebounce = Nearest, tick()
  1057. end
  1058.  
  1059. local function HookEvent(self, old, ...)
  1060. local Name = self.Name
  1061.  
  1062. if Name == "RE/ShootGunEvent" then
  1063. local Position, Enemies = ...
  1064.  
  1065. if typeof(Position) == "Vector3" and type(Enemies) == "table" then
  1066. local Target = GetNextTarget("AimBot_Gun")
  1067.  
  1068. if Target then
  1069. table.insert(Enemies, Target)
  1070. Position = Target.Position
  1071. end
  1072.  
  1073. return old(self, Position, Enemies)
  1074. end
  1075. elseif Name == "RemoteEvent" and self.Parent.ClassName == "Tool" then
  1076. local Position, Enemy = ...
  1077.  
  1078. if typeof(Position) == "Vector3" then
  1079. local Target = GetNextTarget("AimBot_Gun")
  1080.  
  1081. if Target then
  1082. return old(self, Target.Position)
  1083. end
  1084. end
  1085. elseif self.ClassName == "RemoteFunction" then
  1086. local Tag, Position = ...
  1087.  
  1088. if typeof(Position) == "Vector3" and (Tag == "TAP" or not Position and Skills[Tag]) then
  1089. local Target = GetNextTarget("AimBot_Skills")
  1090.  
  1091. if Tag == "TAP" and Target then
  1092. return old(self, Tag, Target.Position)
  1093. elseif Target then
  1094. return old(self, Tag, Target.Position, Target)
  1095. end
  1096. end
  1097. end
  1098.  
  1099. return old(self, ...)
  1100. end
  1101.  
  1102. function module:SpeedBypass()
  1103. if _ENV._Enabled_Speed_Bypass then
  1104. return nil
  1105. end
  1106.  
  1107. _ENV._Enabled_Speed_Bypass = true
  1108.  
  1109. local oldHook;
  1110. oldHook = hookmetamethod(Player, "__newindex", function(self, index, value)
  1111. if self.Name == "Humanoid" and index == "WalkSpeed" then
  1112. return oldHook(self, index, _ENV.WalkSpeedBypass or value)
  1113. end
  1114. return oldHook(self, index, value)
  1115. end)
  1116. end
  1117.  
  1118. function module:SetTarget(RootPart)
  1119. NextEnemy = RootPart
  1120. end
  1121.  
  1122. if not _ENV.loaded_aimbot then
  1123. _ENV.loaded_aimbot = true
  1124.  
  1125. Stepped:Connect(UpdateTarget)
  1126.  
  1127. local old;old = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  1128. local Method = string.lower(getnamecallmethod())
  1129.  
  1130. if Method == "fireserver" or Method == "invokeserver" then
  1131. return HookEvent(self, old, ...)
  1132. end
  1133. return old(self, ...)
  1134. end))
  1135. end
  1136.  
  1137. return module
  1138. end)()
  1139.  
  1140. Module.FastAttack = (function()
  1141. if _ENV.rz_FastAttack then
  1142. return _ENV.rz_FastAttack
  1143. end
  1144.  
  1145. local module = {
  1146. NextAttack = 0,
  1147. Distance = 55,
  1148. attackMobs = true,
  1149. attackPlayers = true
  1150. }
  1151.  
  1152. local RegisterAttack = Net:WaitForChild("RE/RegisterAttack")
  1153. local RegisterHit = Net:WaitForChild("RE/RegisterHit")
  1154.  
  1155. function module:AttackEnemy(EnemyHead)
  1156. if EnemyHead and Player:DistanceFromCharacter(EnemyHead.Position) < self.Distance then
  1157. if not self.FirstAttack then
  1158. RegisterAttack:FireServer(Settings.ClickDelay or 0.125)
  1159. self.FirstAttack = true
  1160. end
  1161. RegisterHit:FireServer(EnemyHead, {})
  1162. end
  1163. end
  1164.  
  1165. function module:AttackNearest()
  1166. for _, Enemy in Enemies:GetChildren() do
  1167. self:AttackEnemy(Enemy:FindFirstChild("UpperTorso"))
  1168. end
  1169. for _, Enemy in Characters:GetChildren() do
  1170. if Enemy ~= Player.Character then
  1171. self:AttackEnemy(Enemy:FindFirstChild("UpperTorso"))
  1172. end
  1173. end
  1174.  
  1175. if not self.FirstAttack then
  1176. task.wait(0.5)
  1177. end
  1178. end
  1179.  
  1180. function module:BladeHits()
  1181. self:AttackNearest()
  1182. self.FirstAttack = false
  1183. end
  1184.  
  1185. task.spawn(function()
  1186. while task.wait(Settings.ClickDelay or 0.125) do
  1187. if (tick() - Module.AttackCooldown) < 1 then continue end
  1188. if not Settings.AutoClick then continue end
  1189. if not Module.IsAlive(Player.Character) then continue end
  1190. if not Player.Character:FindFirstChildOfClass("Tool") then continue end
  1191.  
  1192. module:BladeHits()
  1193. end
  1194. end)
  1195.  
  1196. _ENV.rz_FastAttack = module
  1197. return module
  1198. end)()
  1199.  
  1200. Module.Tween = (function()
  1201. if _ENV.TweenVelocity then
  1202. return _ENV.TweenVelocity
  1203. end
  1204.  
  1205. local IsAlive = Module.IsAlive
  1206. local Velocity = Instance.new("BodyVelocity", workspace)
  1207. Velocity.Name = "hidden_user_folder_ :)"
  1208. Velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1209. Velocity.Velocity = Vector3.zero
  1210.  
  1211. _ENV.TweenVelocity = Velocity
  1212.  
  1213. Stepped:Connect(function()
  1214. local Character = Player.Character
  1215.  
  1216. if _ENV.OnFarm and Velocity.Parent ~= nil and Character then
  1217. for _, Part in Character:GetDescendants() do
  1218. if Part:IsA("BasePart") and Part.CanCollide then
  1219. Part.CanCollide = false
  1220. end
  1221. end
  1222. end
  1223. end)
  1224.  
  1225. Heartbeat:Connect(function()
  1226. local Character = Player.Character
  1227. local isAlive = IsAlive(Character)
  1228.  
  1229. if isAlive and Velocity ~= Vector3.zero and (not Character.Humanoid.SeatPart or not _ENV.OnFarm) then
  1230. Velocity.Velocity = Vector3.zero
  1231. end
  1232.  
  1233. if _ENV.OnFarm and isAlive then
  1234. if Velocity.Parent == nil then
  1235. Velocity.Parent = Character.PrimaryPart
  1236. end
  1237. elseif Velocity.Parent ~= nil then
  1238. Velocity.Parent = nil
  1239. end
  1240. end)
  1241.  
  1242. return Velocity
  1243. end)()
  1244.  
  1245. Module.RaidList = (function()
  1246. local Raids = require(ReplicatedStorage:WaitForChild("Raids"))
  1247. local list = {}
  1248.  
  1249. for _,chip in ipairs(Raids.advancedRaids) do table.insert(list, chip) end
  1250. for _,chip in ipairs(Raids.raids) do table.insert(list, chip) end
  1251.  
  1252. return list
  1253. end)()
  1254. end
Advertisement
Add Comment
Please, Sign In to add comment