Advertisement
MatLumber2

Untitled

Jan 29th, 2024
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.90 KB | None | 0 0
  1.  
  2. repeat wait() until game.Players.LocalPlayer
  3. if not getgenv().tvk then getgenv().tvk={} end
  4. for k,v in pairs(getgenv().tvk) do v.On=false end
  5. local plr = game.Players.LocalPlayer
  6. local queue_on_teleport = queue_on_teleport
  7. if syn then queue_on_teleport = syn.queue_on_teleport end
  8. queue_on_teleport([[
  9. loadstring(game:HttpGet("https://raw.githubusercontent.com/CFA-HUB/CFAHub-Free/main/cfahubfree.lua"))()
  10. ]])
  11. local NguyHiem=false
  12. local Settings = {
  13. AutoStat = {
  14. Strength = false,
  15. Stamina = false,
  16. Defense = false,
  17. GunMastery = false,
  18. SwordMastery = false
  19. }
  20. }
  21. local Temp = {
  22. Nodrown = {},
  23. Noclip = {},
  24. DashNoStam = {},
  25. NoFallDame = {},
  26. Drown={}
  27. }
  28. function TableToSave(tb)
  29. local cac = {}
  30. for k,v in pairs(tb) do
  31. if type(v)=="vector" then
  32. cac[k]={v.X,v.Y,v.Z,"Vector3"}
  33. else
  34. cac[k]=v
  35. end
  36. end
  37. return cac
  38. end
  39. function SaveToTable(tb)
  40. local cac = {}
  41. for k,v in pairs(tb) do
  42. if type(v)=="table" and #v==4 and v[4]=="Vector3" then
  43. cac[k]=Vector3.new(v[1],v[2],v[3])
  44. else
  45. cac[k]=v
  46. end
  47. end
  48. return cac
  49. end
  50. local SaveFileName = plr.Name.."_GPO.json"
  51.  
  52. function SaveSettings()
  53. local HttpService = game:GetService("HttpService")
  54. if not isfolder("CFA HUB") then
  55. makefolder("CFA HUB")
  56. end
  57. writefile("CFA HUB/" .. SaveFileName, HttpService:JSONEncode(TableToSave(Settings)))
  58. end
  59.  
  60. function ReadSetting()
  61. local s,e = pcall(function()
  62. local HttpService = game:GetService("HttpService")
  63. if not isfolder("CFA HUB") then
  64. makefolder("CFA HUB")
  65. end
  66. return HttpService:JSONDecode(readfile("CFA HUB/" .. SaveFileName))
  67. end)
  68. if s then return e
  69. else
  70. SaveSettings()
  71. return ReadSetting()
  72. end
  73. end
  74. local tvkdumb = {On=true}
  75. function tvkdumb:cac(self)
  76. spawn(function()
  77. while wait(1) and self.On do SaveSettings() end
  78. print("Stoped")
  79. end)
  80. end
  81. tvkdumb:cac(tvkdumb)
  82. table.insert(getgenv().tvk,tvkdumb)
  83. Settings = SaveToTable(ReadSetting())
  84. repeat wait() until game:IsLoaded()
  85.  
  86. repeat wait(.25)
  87. until plr:FindFirstChild("Loaded")
  88. and plr.Loaded.Value == true
  89. and plr.Character
  90. and plr:FindFirstChild("Backpack")
  91. and plr.Character:FindFirstChild("Humanoid")
  92. and plr:FindFirstChild("PlayerGui")
  93. and plr.PlayerGui:FindFirstChild("Notifications")
  94. and #plr.Backpack:GetChildren() ~= 0 and pcall(function()
  95. return game.Players.LocalPlayer.Idled
  96. end)
  97. local function FireButton(x)
  98. for i, v in pairs(getconnections(x.MouseButton1Click)) do
  99. v:Function()
  100. end
  101. end
  102. if game.PlaceId==1730877806 then
  103. repeat wait() until game:GetService("ReplicatedStorage").Events:FindFirstChild("reserved")
  104. if Settings.PSCode and Settings.PSCode~="" then
  105. local clicked = false
  106. while wait(2) do
  107. game:GetService("ReplicatedStorage").Events.reserved:InvokeServer(Settings.PSCode)
  108. pcall(function()
  109. FireButton(game:GetService("Players").LocalPlayer.PlayerGui.chooseType.Frame.regular)
  110. clicked=true
  111. end)
  112. end
  113. else
  114. while wait(2) do
  115. game:GetService("ReplicatedStorage").Events.playgame:FireServer()
  116. end
  117. end
  118. return
  119. end
  120. local plr = game.Players.LocalPlayer
  121.  
  122. local rnd = tostring(math.random(1,100000))
  123.  
  124. local request=request
  125. if syn then request=syn.request end
  126. local StoringDF = false
  127. for i, v in next, getconnections(game.Players.LocalPlayer.Idled) do
  128. v:Disable()
  129. end
  130. local vu = game:GetService("VirtualUser")
  131. game:GetService("Players").LocalPlayer.Idled:connect(
  132. function()
  133. vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  134. wait(1)
  135. vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  136. end
  137. )
  138. local SwordPos = CFrame.new(5410.0478515625, 155.58578491210938, -5168.189453125)
  139. function BuyKatana()
  140. fireclickdetector(game:GetService("Workspace").BuyableItems.Katana.ShopPart.ClickDetector)
  141. end
  142. local FindNearest
  143. for k, v in pairs(getgc()) do
  144. if debug.getinfo(v).name == "FindNearest" and tostring(getfenv(v).script) == "Hitbox" then
  145. FindNearest = v
  146. break
  147. end
  148. end
  149. if not FindNearest then
  150. game.Players.LocalPlayer:Kick("Script error when loading, rejoin and try again")
  151. end
  152. MucTieu = {}
  153. MucTieu.old =
  154. hookfunction(
  155. FindNearest,
  156. function(a, b)
  157. if MucTieu.MucTieu then
  158. return MucTieu.MucTieu
  159. end
  160. return MucTieu.old(a, b)
  161. end
  162. )
  163. local secure_call = (syn and syn.secure_call) or function(f)
  164. setthreadcontext(2)
  165. f()
  166. setthreadcontext(7)
  167. end
  168.  
  169.  
  170.  
  171. local old = getrenv()._G.hitbox.start
  172. getrenv()._G.hitbox.start = function(...)
  173. local arg = {...}
  174. arg[3] = Vector3.new(30, 30, 30)
  175. return old(unpack(arg))
  176. end
  177. local data = game.ReplicatedStorage["Stats" .. game.Players.LocalPlayer.Name]
  178. print(data.Stats.SpawnPoint.Value)
  179.  
  180. local FarmPath = {
  181. Buso = {
  182. [1] = {
  183. Mob = "Yeti",
  184. RiflePos = CFrame.new(-6770.1044921875, 96.480255126953, 2113.1389160156),
  185. Mobpos = CFrame.new(-6684.44, 10, 1828.623),
  186. Questpos = CFrame.new(-6566.0034179688, 169.4822845459, 1995.3051757813),
  187. Quest = "Road to Armament",
  188. Spawn = CFrame.new(-1314.5081787109, 10.434856414795, 1113.4360351563),
  189. Island = "Sandora",
  190. LevelReq = 80,
  191. CooldownY = 52.4,
  192. SwordY = 68,
  193. LevelRequest = 80,
  194. RapidY = 70
  195. }
  196. },
  197. Melee = {
  198. Normal = {
  199. [1] = {
  200. Mob = "Fishman Karate User",
  201. Mobpos = CFrame.new(7670.65137, -2189.93994, -17322.8379, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  202. Questpos = CFrame.new(
  203. 7730.92773,
  204. -2175.83203,
  205. -17222.5781,
  206. 0.0217917003,
  207. -7.93145247e-08,
  208. 0.999762535,
  209. -3.60022554e-08,
  210. 1,
  211. 8.01180988e-08,
  212. -0.999762535,
  213. -3.77396141e-08,
  214. 0.0217917003
  215. ),
  216. Quest = "Help becky",
  217. Spawn = CFrame.new(
  218. 7976.84131,
  219. -2152.8313,
  220. -17073.9063,
  221. 0.647454381,
  222. 1.1295689e-07,
  223. 0.762104213,
  224. -4.50578455e-08,
  225. 1,
  226. -1.09937709e-07,
  227. -0.762104213,
  228. 3.68408735e-08,
  229. 0.647454381
  230. ),
  231. Island = "Fishman Island",
  232. LevelReq = 190,
  233. SwordY = -2182.94,
  234. BlackLegY = -2182.94,
  235. CooldownY=-2189.94,
  236. RapidY=-2182.94
  237. }
  238. },
  239. Advance = {
  240. [160] = {
  241. Mob = "Gravito's Undermen",
  242. Mobpos = CFrame.new(2718.87573, 60.1180725, -15689.9375, -0.965884089, -1.76300429e-19, 0.25897485, -1.13688492e-19, 1, 2.56745101e-19, -0.25897485, 2.18543522e-19, -0.965884089),
  243. Questpos = CFrame.new(2510.30103, 41.4681244, -15541.5859, 0.996558726, -4.13273469e-08, 0.0828894675, 3.50337892e-08, 1, 7.73815572e-08, -0.0828894675, -7.42113357e-08, 0.996558726),
  244. Quest = "Help Miska",
  245. Spawn = CFrame.new(2585.16138, 7.64981413, -15364.9072, 0.999508381, 4.34313142e-06, 0.0313485563, -5.47222771e-06, 0.99999994, 3.59315163e-05, -0.0313485563, -3.60853955e-05, 0.999508381),
  246. Island = "Gravito's Fort",
  247. LevelReq = 160,
  248. SwordY = 31.861898422241,
  249. BlackLegY = 34.6,
  250. CooldownY=7.6498141288757,
  251. RapidY=35.39432144165,
  252. BlackLegPos = CFrame.new(2604.27148, 37.3680725, -15549.2383, 0.999779046, -3.19521938e-08, -0.0210261438, 3.2335997e-08, 1, 1.79135871e-08, 0.0210261438, -1.85895299e-08, 0.999779046)
  253. },
  254. }
  255. },
  256. Rifle = {
  257. Normal = {
  258. [1] = {
  259. Mob = "Fishman Karate User",
  260. Mobpos = CFrame.new(
  261. 7824.5166,
  262. -2138.18994,
  263. -17138.4766,
  264. 0.916648865,
  265. 0,
  266. 0.399693429,
  267. 0,
  268. 1,
  269. 0,
  270. -0.399693429,
  271. 0,
  272. 0.916648865
  273. ),
  274. Questpos = CFrame.new(
  275. 7730.92773,
  276. -2175.83203,
  277. -17222.5781,
  278. 0.0217917003,
  279. -7.93145247e-08,
  280. 0.999762535,
  281. -3.60022554e-08,
  282. 1,
  283. 8.01180988e-08,
  284. -0.999762535,
  285. -3.77396141e-08,
  286. 0.0217917003
  287. ),
  288. Quest = "Help becky",
  289. LevelRequest = 190,
  290. Spawn = CFrame.new(
  291. 7976.84131,
  292. -2152.8313,
  293. -17073.9063,
  294. 0.647454381,
  295. 1.1295689e-07,
  296. 0.762104213,
  297. -4.50578455e-08,
  298. 1,
  299. -1.09937709e-07,
  300. -0.762104213,
  301. 3.68408735e-08,
  302. 0.647454381
  303. ),
  304. Island = "Fishman Island"
  305. }
  306. },
  307. Advance = {
  308. [160] = {
  309. Mob = "Gravito's Undermen",
  310. Mobpos = CFrame.new(2718.87573, 60.1180725, -15689.9375, -0.965884089, -1.76300429e-19, 0.25897485, -1.13688492e-19, 1, 2.56745101e-19, -0.25897485, 2.18543522e-19, -0.965884089),
  311. Questpos = CFrame.new(2510.30103, 41.4681244, -15541.5859, 0.996558726, -4.13273469e-08, 0.0828894675, 3.50337892e-08, 1, 7.73815572e-08, -0.0828894675, -7.42113357e-08, 0.996558726),
  312. Quest = "Help Miska",
  313. LevelRequest = 160,
  314. Spawn = CFrame.new(2585.16138, 7.64981413, -15364.9072, 0.999508381, 4.34313142e-06, 0.0313485563, -5.47222771e-06, 0.99999994, 3.59315163e-05, -0.0313485563, -3.60853955e-05, 0.999508381),
  315. Island = "Gravito's Fort"
  316. }
  317. }
  318. }
  319.  
  320. }
  321.  
  322. FarmPath.Rifle.Advance[1]=FarmPath.Rifle.Normal[1]
  323. FarmPath.Melee.Advance[1]=FarmPath.Melee.Normal[1]
  324.  
  325. local lvadd=190
  326. FarmPath.Rifle.Advance[lvadd]=FarmPath.Rifle.Advance[1]
  327. FarmPath.Melee.Advance[lvadd]=FarmPath.Melee.Advance[1]
  328.  
  329.  
  330. function CheckQuest(a, b, d)
  331. if d == "Buso" then
  332. return FarmPath.Buso[1]
  333. end
  334.  
  335. local index = math.huge
  336. local questchecker
  337. local level = data.Stats.Level.Value
  338. local path = FarmPath.Melee
  339. if a == "Rifle" then
  340. path = FarmPath.Rifle
  341. end
  342. if b then
  343. path=path.Advance
  344. else
  345. path=path.Normal
  346. end
  347. for i, v in pairs(path) do
  348. if (level - i) >= 0 then
  349. if (level - i) < math.abs(level - index) then
  350. index = i
  351. end
  352. end
  353. end
  354. return path[index]
  355. end
  356. function CheckEN(str)
  357. local cac = Temp[str]
  358. for k, v in pairs(cac) do
  359. if v then
  360. return true
  361. end
  362. end
  363. return false
  364. end
  365. function SetEN(str, cac, rac)
  366. Temp[str][cac] = rac
  367. end
  368. function IsFishMan(pos)
  369. return pos.Y < -2000
  370. end
  371.  
  372. local thieunang =
  373. CFrame.new(
  374. -1287.51025,
  375. 62.1618462,
  376. 248.200958,
  377. 0.160935402,
  378. -3.94616087e-31,
  379. 0.98696506,
  380. -1.16209818e-31,
  381. 1,
  382. 4.18777198e-31,
  383. -0.98696506,
  384. -1.8209114e-31,
  385. 0.160935402
  386. )
  387. if setfflag then
  388. setfflag("HumanoidParallelRemoveNoPhysics", "False")
  389. setfflag("HumanoidParallelRemoveNoPhysicsNoSimulate2", "False")
  390. end
  391. local banvaudau = 0
  392. function SetVaoDau(i)
  393. banvaudau=i
  394. end
  395. function GetVauDau()
  396. return banvaudau
  397. end
  398. local DisableNoDrown = false
  399. local old
  400. old = hookfunction(Instance.new("RemoteEvent").FireServer, function(...)
  401. local Self = ...
  402. if CheckEN("Nodrown")
  403. and tostring(Self) == "swim" then
  404. return nil
  405. end
  406. return old(...)
  407. end)
  408. local old
  409. old = hookmetamethod(game, "__namecall", function(...)
  410. local Self = ...
  411. if CheckEN("NoFallDame")
  412. and tostring(Self) == "FallDmg" then
  413. return nil
  414. end
  415. if CheckEN("DashNoStam")
  416. and tostring(Self) == "takestam" then
  417. return nil
  418. end
  419. if CheckEN("Nodrown")
  420. and tostring(Self) == "swim" then
  421. return nil
  422. end
  423. local args = {...}
  424. if getnamecallmethod()=="InvokeServer" and tostring(Self)=="Skill" and args[2]=="Blocking " then
  425. return
  426. end
  427. if tostring(Self)=="CIcklcon" then
  428. SetVaoDau(GetVauDau()+1)
  429. if Settings.RifleKick then
  430. if GetVaoDau()>480 then
  431. plr:Kick("\n[CFA Hub]\nKicked 499th rifle shoot (Rifle Kick)")
  432. end
  433. end
  434. end
  435. return old(...)
  436. end)
  437.  
  438. local tvktrumskid = tostring(math.random(0, 100000))
  439. local TweenFloatVelocity = Vector3.new(0,0,0)
  440. function CreateTweenFloat()
  441. local BV = plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid) or Instance.new("BodyVelocity")
  442. BV.Parent = plr.Character.HumanoidRootPart
  443. BV.Name = tvktrumskid
  444. BV.MaxForce = Vector3.new(100000, 100000, 100000)
  445. BV.Velocity = TweenFloatVelocity
  446. end
  447. function TweenFloat(tvk)
  448. if tvk and not plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid..tvktrumskid) then
  449. local BV = Instance.new("BodyVelocity")
  450. BV.Parent = plr.Character.HumanoidRootPart
  451. BV.Name = tvktrumskid..tvktrumskid
  452. BV.MaxForce = Vector3.new(100000, 100000, 100000)
  453. BV.Velocity = Vector3.new(0, 0, 0)
  454. else
  455. if not tvk and plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid..tvktrumskid) then
  456. plr.Character.HumanoidRootPart[tvktrumskid..tvktrumskid]:Destroy()
  457. end
  458. end
  459. end
  460. function QuayNgang(pos)
  461. local bulon = CFrame.new(pos.X,pos.Y,pos.Z,-0.008880537, 0.999960601, -6.28793302e-08, -5.37608429e-08, -5.96046448e-08, -0.99999994, -0.999960601, -0.008880537, 6.35593764e-08)
  462. return bulon
  463. end
  464. function GetAllState()
  465. local cac = {}
  466. for k,v in pairs(Enum.HumanoidStateType:GetEnumItems()) do
  467. if plr.Character:FindFirstChild("Humanoid") then
  468. cac[v]=plr.Character.Humanoid:GetStateEnabled(v)
  469. end
  470. end
  471. return cac
  472. end
  473. function SetAllState(rac)
  474. local cac = {}
  475. for k,v in pairs(Enum.HumanoidStateType:GetEnumItems()) do
  476. if plr.Character:FindFirstChild("Humanoid") then
  477. plr.Character.Humanoid:SetStateEnabled(v,rac)
  478. end
  479. end
  480. return cac
  481. end
  482. local speaker = game.Players.LocalPlayer
  483. local StopFloat=false
  484.  
  485. game:GetService("RunService").Stepped:Connect(
  486. function()
  487. if StopFloat then
  488. if plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid) then
  489. plr.Character.HumanoidRootPart[tvktrumskid]:Destroy()
  490. end
  491. end
  492. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  493. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and
  494. game.Players.LocalPlayer.Character.Parent == game.Workspace.PlayerCharacters and
  495. not plr.PlayerGui:FindFirstChild("DEATHGUI") then
  496. if CheckEN("Noclip") then
  497. if (not setfflag or (identifyexecutor and identifyexecutor():upper() == "KRNL")) then
  498. if
  499. speaker.Character ~= nil and CheckEN("Noclip") and
  500. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  501. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and
  502. game.Players.LocalPlayer.Character.Parent == game.Workspace.PlayerCharacters and
  503. not plr.PlayerGui:FindFirstChild("DEATHGUI")
  504. then
  505. if not StopFloat then
  506. CreateTweenFloat()
  507. end
  508.  
  509.  
  510. for _, child in pairs(speaker.Character:GetDescendants()) do
  511. if child:IsA("BasePart") and child.CanCollide == true then
  512. child.CanCollide = false
  513. end
  514. end
  515. else
  516. if plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid) then
  517. plr.Character.HumanoidRootPart[tvktrumskid]:Destroy()
  518.  
  519. end
  520. end
  521. else
  522. if CheckEN("Noclip") then
  523. if not StopFloat then
  524. plr.Character.Humanoid:ChangeState(11)
  525. end
  526. for _, child in pairs(plr.Character:GetDescendants()) do
  527. if child:IsA("BasePart") and child.CanCollide == true then
  528. child.CanCollide = false
  529. end
  530. end
  531. end
  532. end
  533. else
  534. if plr.Character.HumanoidRootPart:FindFirstChild(tvktrumskid) then
  535. plr.Character.HumanoidRootPart[tvktrumskid]:Destroy()
  536. end
  537. end
  538. end
  539.  
  540.  
  541. pcall(
  542. function()
  543. -- if CheckEN("Nodrown") then
  544. -- plr.Character.HumanoidRootPart.SwimPosition.Position = Vector3.new(0, -2.71834, 0)
  545. -- end
  546.  
  547. if CheckEN("Nodrown") and not DisableNoDrown then
  548. plr.Character.HumanoidRootPart.SwimPosition.Position = Vector3.new(0, -2.71834, 0)
  549. end
  550. if CheckEN("Drown") then
  551. plr.Character.HumanoidRootPart.SwimPosition:Destroy()
  552. end
  553. end
  554. )
  555. end
  556. )
  557. --local vt = 100
  558. if not Settings.vt then Settings.vt=80 end
  559. function RayCast2(a, b, c)
  560. local ignored = {game.Players.LocalPlayer.Character, game:GetService("Workspace").Effects, part0}
  561.  
  562. local raycastParameters = RaycastParams.new()
  563. raycastParameters.FilterDescendantsInstances = ignored
  564. raycastParameters.FilterType = Enum.RaycastFilterType.Blacklist
  565. raycastParameters.IgnoreWater = false
  566. local rels = workspace:Raycast(a, b, raycastParameters)
  567. return rels
  568. end
  569. function IsSea()
  570. local t = RayCast2(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(0, -500, 0))
  571. --print(t.Instance)
  572. if t == nil or t.Instance.Name == "InvisSandd" then
  573. return true
  574. end
  575. return false
  576. end
  577. local tvk = function(f) f() end
  578. local plr = game:service "Players".LocalPlayer
  579. local tween_s = game:service "TweenService"
  580. function Tween2(t, cb)
  581. local plr = game:service "Players".LocalPlayer
  582. local tween_s = game:service "TweenService"
  583. local info =
  584. TweenInfo.new(
  585. (game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position - t.p).magnitude / Settings.vt,
  586. Enum.EasingStyle.Linear
  587. )
  588. local tic_k = tick()
  589. local cframe = t
  590. local tween, err =
  591. tvk(
  592. function()
  593. local tween = tween_s:Create(plr.Character:WaitForChild("HumanoidRootPart"), info, {CFrame = cframe})
  594. local done = false
  595. tween.Completed:Connect(
  596. function()
  597. done = true
  598. end
  599. )
  600. cb(
  601. function()
  602. done = true
  603. tween:Cancel()
  604. end
  605. )
  606. noclip = true
  607. tween:Play()
  608. while (done == false) do
  609. SetEN("Noclip", "Tween", true)
  610. if not( game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  611. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and
  612. game.Players.LocalPlayer.Character.Parent == game.Workspace.PlayerCharacters and
  613. not plr.PlayerGui:FindFirstChild("DEATHGUI")) then done = true
  614. tween:Cancel() return end
  615. if (plr.Character.HumanoidRootPart.Position-t.Position).magnitude <40 then
  616. plr.Character.HumanoidRootPart.CFrame=t
  617. tween:Cancel()
  618. return
  619. end
  620. wait()
  621. end
  622.  
  623. noclip = false
  624. end
  625. )
  626.  
  627. end
  628. spawn(function()
  629. while wait() do
  630. if plr.Character:FindFirstChild("Humanoid") then
  631. if plr.Character.Humanoid.Sit then
  632. StopFloat=true
  633. wait(.1)
  634. plr.Character.Humanoid.Sit=false
  635. StopFloat=false
  636. end
  637. end
  638. end
  639. end)
  640. function y0(vc)
  641. return Vector3.new(vc.X,0,vc.Z)
  642. end
  643. local DisableSafeMode = false
  644. local Last
  645. local FishUp = CFrame.new(8585.81641, -2136.12305, -17087.8145, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  646. function FireTouch(part)
  647. if plr.Character:FindFirstChild("HumanoidRootPart") then
  648. firetouchinterest(plr.Character:WaitForChild("HumanoidRootPart"), part, 0)
  649. firetouchinterest(plr.Character:WaitForChild("HumanoidRootPart"), part, 1)
  650. end
  651. end
  652. function tpT(Pos,k,Origin,dieukien,DisableBypass,Float)
  653. if Last then
  654. Last()
  655. Last = nil
  656. end
  657. if not plr.Character:FindFirstChild("HumanoidRootPart") then return end
  658. if (plr.Character.HumanoidRootPart.Position-Pos.Position).magnitude <40 then
  659. plr.Character.HumanoidRootPart.CFrame=Pos
  660. --tween:Cancel()
  661. return
  662. end
  663. if not Float then
  664. StopFloat=true
  665. else
  666. StopFloat=false
  667. end
  668. local tvk = function()
  669. if not IsFishMan(Pos) and IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  670. tpT(FishUp,nil,nil,dieukien,DisableBypass,Float)
  671. DisableSafeMode=true
  672. FireTouch(game:GetService("Workspace").Fishman.Part2)
  673. wait(1)
  674. if not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  675. DisableSafeMode=false
  676. return tpT(Pos,nil,nil,dieukien,DisableBypass,Float)
  677. end
  678. end
  679. if IsFishMan(Pos) and not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  680. tpT(CFrame.new(5682.19, 5, -16458.479),dieukien,DisableBypass,Float)
  681. SetEN("Drown","Tween",true)
  682. tpT(CFrame.new(5639.86865, -92.762001, -16611.4688, -1, 0, 0, 0, 1, 0, 0, 0, -1),nil,nil,dieukien,DisableBypass,Float)
  683.  
  684. DisableSafeMode=true
  685. FireTouch(game:GetService("Workspace").Fishman.Part)
  686.  
  687. wait(1)
  688. SetEN("Drown","Tween",true)
  689. if IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  690. DisableSafeMode=false
  691. return tpT(Pos,nil,nil,dieukien,DisableBypass,Float)
  692. end
  693. -- TpTween(pos,sp,part)
  694. end
  695. if (IsFishMan(Pos) and IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position)) or (not IsFishMan(Pos) and not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position)) then
  696.  
  697. if not Origin then
  698. Origin = Pos
  699. end
  700.  
  701. local info = TweenInfo.new((plr.Character.HumanoidRootPart.Position - Pos.p).magnitude / Settings.vt, Enum.EasingStyle.Linear)
  702. if k == nil then
  703. k = 1
  704. end
  705. local tween_s = game:service "TweenService"
  706. local tween = game:service "TweenService":Create(plr.Character:WaitForChild("HumanoidRootPart"), info, {CFrame = Pos})
  707. local done = false
  708. tween.Completed:Connect(
  709. function()
  710. done = true
  711. end
  712. )
  713. tween:Play()
  714. local Stop = function()
  715. tween:Cancel()
  716. done = true
  717. SetEN("Noclip", "Tween", false)
  718. end
  719. Last = Stop
  720. while (done == false) do
  721. if dieukien and not dieukien() then Stop() return end
  722. SetEN("Noclip", "Tween", true)
  723. if not( game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  724. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and
  725. game.Players.LocalPlayer.Character.Parent == game.Workspace.PlayerCharacters and
  726. not plr.PlayerGui:FindFirstChild("DEATHGUI")) then Stop() return end
  727. if not plr.Character:FindFirstChild("Humanoid") then Stop() return end
  728.  
  729. if math.abs(Pos.Position.Y-plr.Character.HumanoidRootPart.Position.Y)>50 then
  730. StopFloat=false
  731. else
  732. if not Float then
  733. StopFloat=true
  734. else
  735. StopFloat=false
  736. end
  737. end
  738. wait(.1)
  739. if sp and not part.Parent then
  740. return
  741. end
  742. if done then return end
  743. if (plr.Character.HumanoidRootPart.Position-Pos.Position).magnitude <40 then
  744. plr.Character.HumanoidRootPart.CFrame=Pos
  745. tween:Cancel()
  746. return
  747. end
  748. do
  749. local hp = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  750. local p1 = Vector3.new(Origin.X, 0, Origin.Z)
  751. local p2 = Vector3.new(hp.X, 0, hp.Z)
  752. if (p1 - p2).magnitude < 200 then
  753. tween:Cancel()
  754. return tpT(Origin,nil,Origin,dieukien,true,true)
  755. end
  756. end
  757. if not DisableBypass then
  758. local pos = -2.7848949432373
  759. if
  760. not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) and IsSea() and
  761. math.abs(plr.Character.HumanoidRootPart.Position.Y - pos) > .1
  762. then
  763. tween:Cancel()
  764. local cf = plr.Character.HumanoidRootPart.CFrame
  765. return tpT(
  766. CFrame.new(Pos.X, cf.Y, Pos.Z),
  767. k,
  768. Origin,
  769. dieukien,DisableBypass,Float
  770. )
  771. end
  772. if not IsSea() and (game.Players.LocalPlayer.Character.Humanoid.FloorMaterial == Enum.Material.Air) then
  773. --print("bu cu")
  774. local tss = RayCast2(game.Players.LocalPlayer.Character.HumanoidRootPart.Position+Vector3.new(0,3,0), Vector3.new(0, -500, 0))
  775. local tvk = RayCast2(game.Players.LocalPlayer.Character.HumanoidRootPart.Position+Vector3.new(0,3,0), Vector3.new(0, -7, 0))
  776. if not tvk then
  777. if tss and tss.Instance then
  778. tween:Cancel()
  779. local cf = plr.Character.HumanoidRootPart.CFrame
  780. return tpT(CFrame.new(Pos.X, cf.Y, Pos.Z), k, Origin,dieukien,DisableBypass,Float)
  781. end
  782. end
  783. end
  784. end
  785. if not done then
  786. return tpT(CFrame.new(Pos.X, Pos.Y, Pos.Z), k, Origin,dieukien,DisableBypass,Float)
  787. end
  788. end
  789. end
  790.  
  791. end
  792. tvk()
  793. StopFloat=false
  794. end
  795. function TpTween(cf,checkfunc)
  796. SetEN("Nodrown", "Tween", true)
  797. SetEN("Noclip", "Tween", true)
  798. tpT(cf,nil,cf,checkfunc)
  799. SetEN("Noclip", "Tween", false)
  800. SetEN("Nodrown", "Tween", false)
  801. end
  802. function Tp(pos, checkfunc)
  803. if Last then
  804. Last()
  805. Last = nil
  806. end
  807. TpTween(pos,checkfunc)
  808. -- if plr.Character:FindFirstChild("HumanoidRootPart") then
  809. -- if (plr.Character.HumanoidRootPart.Position - pos.p).magnitude < 25 then
  810. -- plr.Character.HumanoidRootPart.CFrame = pos
  811. -- return
  812. -- end
  813. -- end
  814. -- if IsFishMan(pos) and IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  815. -- TpTween(pos,checkfunc)
  816. -- end
  817. -- if not IsFishMan(pos) and IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  818. -- TpTween(FishUp, checkfunc)
  819. -- DisableSafeMode=true
  820. -- FireTouch(game:GetService("Workspace").Fishman.Part2)
  821.  
  822. -- wait(1)
  823. -- if not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  824. -- DisableSafeMode=false
  825. -- TpTween(pos, checkfunc)
  826. -- end
  827. -- end
  828. -- if IsFishMan(pos) and not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  829. -- TpTween(CFrame.new(5639.86865, -92.762001, -16611.4688, -1, 0, 0, 0, 1, 0, 0, 0, -1), checkfunc)
  830. -- DisableSafeMode=true
  831. -- FireTouch(game:GetService("Workspace").Fishman.Part)
  832.  
  833. -- wait(1)
  834. -- if IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) then
  835. -- DisableSafeMode=false
  836. -- TpTween(pos, checkfunc)
  837. -- end
  838. -- -- TpTween(pos,sp,part)
  839. -- end
  840. -- if
  841. -- not IsFishMan(pos) and
  842. -- not IsFishMan(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position)
  843. -- then
  844. -- TpTween(pos,checkfunc)
  845. -- end
  846. end
  847.  
  848.  
  849. local CFAHub =
  850. loadstring(game:HttpGet("https://raw.githubusercontent.com/Kiet1308/tvkhub/main/rac"))()
  851. local txt="Grand Piece Online"
  852. if identifyexecutor()=="Krnl" then
  853. txt="Grand Piece Online (KRNL)"
  854. end
  855. local Window = CFAHub:CreateWindow("<font color=\"#4FC3F7\">CFA Hub</font>", txt, true)
  856.  
  857. --CFAHub:AddNoti("CFA Hub Premium", "UI Loaded!", 6)
  858. function GetSword()
  859. for k, v in pairs(plr.Character:GetChildren()) do
  860. if v:FindFirstChild("SwordEquip") then
  861. return v, true
  862. end
  863. end
  864. for k, v in pairs(plr.Backpack:GetChildren()) do
  865. if v:FindFirstChild("SwordEquip") then
  866. return v, false
  867. end
  868. end
  869. end
  870. function CheckInven(item)
  871. local cac = game:GetService("HttpService"):JSONDecode(data.Inventory.Inventory.Value)
  872. for k,v in pairs(cac) do
  873. if k==item then
  874. return k
  875. end
  876. end
  877. end
  878. function GetRifle()
  879. return game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Rifle") or game:GetService("Players").LocalPlayer.Character:FindFirstChild("Rifle")
  880. end
  881.  
  882. local function GetNearestChest()
  883. local Chest
  884. for i, v in ipairs(game.workspace.Env:GetChildren()) do
  885. if plr.Character:FindFirstChild("HumanoidRootPart") and v.Name == "Chest" and v:IsA("Model") and v:FindFirstChild("MeshPart") then
  886. if not Chest then
  887. Chest=v
  888. end
  889. if (v.MeshPart.Position - plr.Character.HumanoidRootPart.Position).magnitude<(Chest.MeshPart.Position - plr.Character.HumanoidRootPart.Position).magnitude then
  890. Chest=v
  891. end
  892. end
  893. end
  894. return Chest
  895. end
  896. function IsChestAlive(chest)
  897. if chest.Parent and chest:FindFirstChild("MeshPart") then
  898. return true
  899. end
  900. return false
  901. end
  902.  
  903. function CollectChest(chest)
  904. Tp(chest.MeshPart.CFrame * CFrame.new(0, 5, 0),function()
  905. if not IsChestAlive(chest) then
  906. return false
  907. end
  908. if GetNearestChest()~=chest then
  909. return false
  910. end
  911. return true
  912. end)
  913. if IsChestAlive(chest) then
  914. wait(1)
  915. for i, v in ipairs(game.workspace.Env:GetChildren()) do
  916. if v:FindFirstChild("ClickDetector") then
  917. if (v.Position - plr.Character.HumanoidRootPart.Position).magnitude <10 then
  918. fireclickdetector(v.ClickDetector, 2)
  919. end
  920. end
  921. end
  922. end
  923.  
  924. end
  925. function GetCurrentQuest()
  926. local rac
  927. rac=data
  928. return tostring(rac.Quest.CurrentQuest.Value)
  929. end
  930.  
  931. function GetQuest(quest, rac)
  932.  
  933. local t = tick()
  934. repeat
  935. wait()
  936. game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.T, false, game)
  937. until game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT") or tick() - t > 3
  938. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT") and plr.Character:FindFirstChild("HumanoidRootPart") then
  939. local cur = plr.Character.HumanoidRootPart.CFrame
  940.  
  941. repeat
  942. wait()
  943. if plr.Character:FindFirstChild("HumanoidRootPart") and rac then
  944. plr.Character.HumanoidRootPart.CFrame = cur + Vector3.new(0, -11, 0)
  945. end
  946. pcall(
  947. function()
  948. for k, v in pairs(
  949. getconnections(
  950. game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT").Frame.go.MouseButton1Click
  951. )
  952. ) do
  953. v:Fire()
  954. end
  955. end
  956. )
  957. until not game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT")
  958. end
  959.  
  960. -- game:GetService("ReplicatedStorage").Events.Quest:InvokeServer({"takequest",quest})
  961. end
  962. local function GetNeak()
  963. if game.workspace.Effects:FindFirstChild("Folder") then
  964. for i, v in ipairs(game.workspace.Effects.Folder:GetDescendants()) do
  965. if v.Name == "Part" and v.Parent.Name == "Folder" and v:FindFirstChild("Mesh") and v.Mesh.TextureId == "http://www.roblox.com/asset/?id=28461501" and v:FindFirstChild("ClickDetector") then
  966. return v
  967. end
  968. end
  969. end
  970. end
  971. function GetSword()
  972. for k, v in pairs(plr.Character:GetChildren()) do
  973. if v:FindFirstChild("SwordEquip") then
  974. return v, true
  975. end
  976. end
  977. for k, v in pairs(plr.Backpack:GetChildren()) do
  978. if v:FindFirstChild("SwordEquip") then
  979. return v, false
  980. end
  981. end
  982. end
  983. spawn(function()
  984. while wait() do
  985. if Settings.Chest then
  986. local chest = GetNearestChest()
  987. if chest then
  988. CollectChest(chest)
  989. else
  990. if not game.Players.LocalPlayer.QuestCD.Value then
  991. local cac = CFrame.new(1009.720458984375, 8.999988555908203, 1179.4952392578125)
  992. local old = plr.CameraMinZoomDistance
  993. local old2 = plr.CameraMaxZoomDistance
  994.  
  995. if GetCurrentQuest()~="Find Sarah's necklace" then
  996. if GetCurrentQuest()~="None" then
  997. game:GetService("ReplicatedStorage").Events.Quest:InvokeServer({"quit"})
  998. end
  999. Tp(cac)
  1000. GetQuest("Sarah", true)
  1001. end
  1002. plr.CameraMinZoomDistance = 128
  1003. game.Players.LocalPlayer.CameraMaxZoomDistance = 256
  1004. game.Players.LocalPlayer.CameraMinZoomDistance = 256
  1005. Tp(CFrame.new(982.9542846679688, 41.349090576171875, 1264.251708984375))
  1006. local t = tick()
  1007. repeat wait()
  1008. local cac = GetNeak()
  1009. if cac then
  1010. local rac = cac.CFrame+Vector3.new(0,5,0)
  1011. Tp(CFrame.new(rac.X,rac.Y,rac.Z))
  1012. wait(1)
  1013. if cac:FindFirstChild("ClickDetector") then
  1014. fireclickdetector(cac.ClickDetector,2)
  1015. end
  1016. else
  1017. Tp(CFrame.new(982.9542846679688, 41.349090576171875, 1264.251708984375))
  1018. end
  1019. until GetCurrentQuest()=="None" or tick()-t>20 or data.Quest.QuestProgress.Value==1 or not Settings.Chest
  1020. game.Players.LocalPlayer.CameraMaxZoomDistance = old2
  1021. game.Players.LocalPlayer.CameraMinZoomDistance = old
  1022. Tp(cac)
  1023. GetQuest("Sarah", true)
  1024. else
  1025.  
  1026. end
  1027. end
  1028.  
  1029. end
  1030. end
  1031. end)
  1032.  
  1033. local Tab2 = Window:CreatePage("Farm")
  1034. local Section2 = Tab2:CreateSection("Main Farm")
  1035.  
  1036. local executor = identifyexecutor()
  1037.  
  1038. if (executor == "Synapse X" or executor == "Krnl") and secure_call then
  1039. else
  1040. CFAHub:AddNoti("Warning", "Your Exploit Is Not Supported, Our Script's might not working perfectly (Supported Exploit: KRNL,Synapse X)", 1)
  1041. end
  1042. local lf = Section2:CreateToggle("Level Farm", {Toggled=Settings.Farm,Description = "Will farm at Fishman Island (best way)"}, function(state)
  1043. Settings.Farm = state
  1044. SetEN("Noclip", "Farm", state)
  1045. SetEN("NoFallDame","Farm",state)
  1046. end)
  1047. -- local lf = Section2:CreateToggle("Legit Farm", {Toggled=Settings.Legit,Description = "Legit Farm"}, function(state)
  1048. -- Settings.Legit = state
  1049.  
  1050. -- end)
  1051.  
  1052. local olf = Section2:CreateToggle("1 Click Level Farm", {Toggled=Settings.OneClick,Description = "Will auto farm beli -> Buy weapons then start level farm"}, function(state)
  1053. SetEN("Noclip", "OneClick", state)
  1054. SetEN("NoFallDame","OneClick",state)
  1055. Settings.OneClick = state
  1056. end)
  1057. Section2:CreateToggle("Auto Buso Quest", {Toggled=Settings.AutoBusoQuest,Description = "Must enable with level farm"}, function(state)
  1058. Settings.AutoBusoQuest=state
  1059. end)
  1060. Section2:CreateDropdown("Level Farm Method", {
  1061. List = {"Rifle","Sword","Black Leg"},
  1062. Default = Settings.FarmMode
  1063. }, function(item)
  1064. Settings.FarmMode = item
  1065. end)
  1066. function IsAdvanceMode(k)
  1067. if k=="1-500 at Fishman" then return false else return true end
  1068. end
  1069. Section2:CreateDropdown("Level Farm Path", {
  1070. List = {"1-500 at Fishman","1-160 at Fishman, 160-190 at gravito fort, 190-500 at Fishman"},
  1071. Default = Settings.FarmPath or "1-500 at Fishman"
  1072. }, function(item)
  1073. Settings.FarmPath = item
  1074. end)
  1075. local Section2 = Tab2:CreateSection("Misc Farm")
  1076. local AFB= Section2:CreateToggle("Auto Farm Beli (For Begginer Only)", {Toggled=Settings.Chest,Description = "Auto Farm Chest then do Sarah quest"}, function(state)
  1077. Settings.Chest = state
  1078. SetEN("Noclip", "Chest", state)
  1079. SetEN("NoFallDame","Chest",state)
  1080. end)
  1081.  
  1082. spawn(function()
  1083. while wait() do
  1084. local mode
  1085. local price
  1086. local GetItem
  1087. local BuyItem
  1088. local Pos
  1089. if Settings.FarmMode=="Sword" then
  1090. mode="Katana"
  1091. price=1000
  1092. GetItem = GetSword
  1093. BuyItem=BuyKatana
  1094. Pos = SwordPos
  1095. end
  1096. if Settings.FarmMode=="Rifle" then
  1097. mode="Rifle"
  1098. price=300
  1099. GetItem=GetRifle
  1100. BuyItem=function()
  1101. fireclickdetector(game:GetService("Workspace").BuyableItems.Rifle.ShopPart.ClickDetector)
  1102. end
  1103. Pos = CFrame.new(999.6433715820312, 9.092554092407227, 1133.33740234375)
  1104. end
  1105.  
  1106. if Settings.OneClick and mode then
  1107. lf.SetValue(false)
  1108. if not GetItem() and not CheckInven(mode) then
  1109. if data.Stats.Peli.Value < price then
  1110. AFB.SetValue(true)
  1111. else
  1112. AFB.SetValue(false)
  1113. Tp(Pos)
  1114. wait(5)
  1115. local t = tick()
  1116. repeat
  1117. wait(1)
  1118. pcall(BuyItem)
  1119. until game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT") or tick() - t > 3
  1120. repeat wait()
  1121. pcall(function()
  1122. for k, v in pairs(getconnections(game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT").Frame.go.MouseButton1Click)) do
  1123. v:Fire()
  1124. end
  1125. end)
  1126. until not game.Players.LocalPlayer.PlayerGui:FindFirstChild("NPCCHAT")
  1127. end
  1128. else
  1129. if CheckInven(mode) then
  1130. game:GetService("ReplicatedStorage").Events.Tools:InvokeServer("equip", mode)
  1131. end
  1132. AFB.SetValue(false)
  1133. lf.SetValue(true)
  1134. olf.SetValue(false)
  1135. end
  1136. end
  1137. end
  1138. end)
  1139. local DoneSeq="0 1 1 1 0 1 1 1 1 0 "
  1140. function IsSkillUnlocked(skill)
  1141. if plr.PlayerGui:FindFirstChild("Keys") then
  1142. if plr.PlayerGui.Keys:FindFirstChild("Frame") then
  1143. if plr.PlayerGui.Keys.Frame:FindFirstChild(skill) then
  1144. if plr.PlayerGui.Keys.Frame[skill].TextLabel.TextLabel.Text ~= "???" then
  1145. return true
  1146. end
  1147. end
  1148. end
  1149. end
  1150. return false
  1151. end
  1152. function IsSkillReady(skill)
  1153. if plr.PlayerGui:FindFirstChild("Keys") then
  1154. if plr.PlayerGui.Keys:FindFirstChild("Frame") then
  1155. if plr.PlayerGui.Keys.Frame:FindFirstChild(skill) then
  1156. if pcall(function() return plr.PlayerGui.Keys.Frame[skill].TextLabel.Frame.UIGradient.Color end) then
  1157. if tostring(plr.PlayerGui.Keys.Frame[skill].TextLabel.Frame.UIGradient.Color)==DoneSeq then
  1158. return true
  1159. end
  1160. end
  1161. end
  1162. end
  1163. end
  1164. return false
  1165. end
  1166. local Section2 = Tab2:CreateSection("Ship Farm")
  1167. Section2:CreateToggle("Ship Farm", {Toggled=Settings.ShipFarm,Description = false}, function(state)
  1168. Settings.ShipFarm = state
  1169. SetEN("Noclip", "ShipFarm", state)
  1170. SetEN("NoFallDame","ShipFarm",state)
  1171. end)
  1172. Section2:CreateDropdown("Ship Farm Method", {
  1173. List = {"Sword","Black Leg"},
  1174. Default = Settings.ShipFarmMode
  1175. }, function(item)
  1176. Settings.ShipFarmMode = item
  1177. end)
  1178. Section2:CreateToggle("Kill Cannoners", {Toggled=Settings.KillCannon,Description = false}, function(state)
  1179. Settings.KillCannon = state
  1180. end)
  1181. -- Section2:CreateToggle("Ignore Galleons", {Description = false}, function(state)
  1182. -- Settings.IgnoreGalleon = state
  1183. -- end)
  1184. Section2:CreateButton("Set Ship Spawn Location", function(args)
  1185. Settings.ShipPos=game.Players.LocalPlayer.Character.HumanoidRootPart.Position--Vector3.new(6013.2841796875, -3.5988941192626953, -18909.974609375)--
  1186. CFAHub:AddNoti("Notification", "Set Ship Farm Position Complete", 5)
  1187. end)
  1188. function TpE(e,f)
  1189. if e:FindFirstChild("HumanoidRootPart") then
  1190. repeat wait()
  1191. spawn(function()
  1192. if e:FindFirstChild("HumanoidRootPart") then
  1193. Tp(e.HumanoidRootPart.CFrame*CFrame.new(0, -0.75, 3))
  1194. end
  1195. end)
  1196. until not e:FindFirstChild("HumanoidRootPart") or not pcall(function() return game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame end) or (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-e.HumanoidRootPart.Position).magnitude<5 or not e.Parent or not f()
  1197. end
  1198. end
  1199. local function KillCaMap()
  1200. for i, v in ipairs(game.workspace.NPCs:GetChildren()) do
  1201. if plr.Character:FindFirstChild("HumanoidRootPart") and v.Name == "Shark" and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Humanoid.Health ~= 0 then
  1202. local magnitude = (v.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude
  1203. if magnitude < 10 then
  1204. Click()
  1205. end
  1206. end
  1207. end
  1208. end
  1209. function EquipWpShip()
  1210. if StoringDF then return end
  1211. if Settings.ShipFarmMode == "Black Leg" then
  1212. if
  1213. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  1214. plr.Backpack:FindFirstChild("BlackLeg")
  1215. then
  1216. plr.Character.Humanoid:EquipTool(plr.Backpack.BlackLeg)
  1217. end
  1218. else
  1219. local sword, equip = GetSword()
  1220. if sword and not equip then
  1221. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  1222. game.Players.LocalPlayer.Character.Humanoid:EquipTool(sword)
  1223. end
  1224. end
  1225. end
  1226. end
  1227. function GetAllMobInShip(ship)
  1228. local Mobs = {}
  1229. for k,v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  1230. if v:FindFirstChild("assignedShip") and v:FindFirstChild("Humanoid") and v.Humanoid.Health>0 then
  1231. if v:FindFirstChild("HumanoidRootPart") then
  1232. if v.assignedShip.Value==ship then
  1233. table.insert(Mobs,v)
  1234. end
  1235. end
  1236. end
  1237. end
  1238. return Mobs
  1239. end
  1240.  
  1241. function Kill(v,f)
  1242. local tween=true
  1243. repeat
  1244. wait()
  1245. EquipWpShip()
  1246. if v:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  1247. TpE(v,function()
  1248. return tween
  1249. end)
  1250. if v:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).magnitude<5 then
  1251. --game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.X, false,game)
  1252. MucTieu.MucTieu = v.HumanoidRootPart
  1253. Click()
  1254. if Settings.ShipFarmMode=="Black Leg" then
  1255. if IsSkillUnlocked("Party Table Kick Course") then
  1256. if data.Stamina.Value>40 then
  1257. game:GetService("ReplicatedStorage").Events.Skill:InvokeServer("Party Table Kick Course")
  1258. end
  1259. end
  1260. end
  1261. if Settings.ShipFarmMode=="Sword" then
  1262. if IsSkillUnlocked("Rapid Slashes") then
  1263. if data.Stamina.Value>20 then
  1264. game:GetService("ReplicatedStorage").Events.Skill:InvokeServer("Rapid Slashes")
  1265. end
  1266. end
  1267. end
  1268.  
  1269. end
  1270. end
  1271. until f(v)
  1272. MucTieu.MucTieu =nil
  1273. tween=false
  1274. end
  1275.  
  1276. plr.Backpack.ChildAdded:Connect(function(fruit)
  1277. if fruit:FindFirstChild("FruitModel") then
  1278. spawn(function()
  1279. if Settings.AutoStoreDF then
  1280. local s, DFBackpackOwn = pcall(game:GetService("MarketplaceService").UserOwnsGamePassAsync, game:GetService("MarketplaceService"), plr.UserId, 12776768)
  1281. if (s and DFBackpackOwn)
  1282. or string.find(data.Inventory.Inventory.Value, "Fruit Bag") then
  1283. local v = fruit
  1284. StoringDF=true
  1285. local t = tick()
  1286.  
  1287. repeat wait(1)
  1288. plr.Character.Humanoid:EquipTool(v)
  1289. wait(.5)
  1290. if pcall(function() return plr.PlayerGui.storefruit.TextButton end) and plr.PlayerGui.storefruit.TextButton.Visible == true then
  1291. FireButton(plr.PlayerGui.storefruit.TextButton)
  1292. end
  1293. until not v
  1294. or not v.Parent
  1295. or not Settings.AutoStoreDF or tick()-t>5
  1296. StoringDF=false
  1297. end
  1298. end
  1299. end)
  1300. if Settings.DFWebHook then
  1301. if Settings.WebHookUrl then
  1302. local msg = {
  1303. ["content"] = (Settings.MentionEveryone and "@everyone") or "",
  1304. ["embeds"] = {{
  1305. ["title"] = "Grand Piece Online",
  1306. ["description"] = "Fruit Gotten",
  1307. ["type"] = "rich",
  1308. ["color"] = tonumber(47103),
  1309. ["fields"] = {
  1310. {
  1311. ["name"] = "Name",
  1312. ["value"] = "||" .. plr.Name .. "||",
  1313. ["inline"] = false
  1314. },
  1315. {
  1316. ["name"] = "Item",
  1317. ["value"] = fruit.Name,
  1318. ["inline"] = false
  1319. }
  1320. },
  1321. ["footer"] = {
  1322. ["icon_url"] = "https://cdn.discordapp.com/attachments/880433061307772958/994650337485000804/dc6e727bd4a71a981a037834b8c8fe38.png",
  1323. ["text"] = "CFA Hub (" .. os.date("%X") .. ")"
  1324. }
  1325. }}
  1326. }
  1327. local function SendWebHook()
  1328. request({
  1329. Url =Settings.WebHookUrl,
  1330. Method = "POST",
  1331. Headers = {
  1332. ["Content-Type"] = "application/json"
  1333. },
  1334. Body = game:GetService("HttpService"):JSONEncode(msg)
  1335. })
  1336. end
  1337. SendWebHook()
  1338. end
  1339. end
  1340. end
  1341. end)
  1342.  
  1343. function GetMob(name,stud)
  1344. for k,v in pairs(game.Workspace.NPCs:GetChildren()) do
  1345. if v.Name==name and v:FindFirstChild("HumanoidRootPart") then
  1346. if plr.Character:FindFirstChild("HumanoidRootPart") and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).magnitude<stud then
  1347. return v
  1348. end
  1349. end
  1350. end
  1351. end
  1352.  
  1353. function ShipGetNearestMobSM(mob)
  1354. local nr = nil
  1355. for k, v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  1356. if string.match(v.Name,mob) and v:FindFirstChild("assignedShip") then
  1357. if
  1358. plr.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("HumanoidRootPart") and
  1359. v:FindFirstChild("Humanoid") and
  1360. v.Humanoid.Health > 0
  1361. then
  1362. if not nr then
  1363. nr = v
  1364. end
  1365. if
  1366. nr and nr:FindFirstChild("HumanoidRootPart") and
  1367. (plr.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude <
  1368. (plr.Character.HumanoidRootPart.Position - nr.HumanoidRootPart.Position).magnitude
  1369. then
  1370. nr = v
  1371. end
  1372. end
  1373. end
  1374. end
  1375. if nr then
  1376. if
  1377. plr.Character:FindFirstChild("HumanoidRootPart") and nr:FindFirstChild("HumanoidRootPart") and
  1378. nr:FindFirstChild("Humanoid") and
  1379. nr.Humanoid.Health > 0 then
  1380. if (plr.Character.HumanoidRootPart.Position - nr.HumanoidRootPart.Position).magnitude <1000 then
  1381. return nr
  1382. end
  1383. end
  1384. end
  1385. --return nr
  1386. end
  1387.  
  1388. spawn(function()
  1389. while wait(.5) do
  1390. if Settings.ShipFarm then
  1391. if Settings.ShipPos and Settings.ShipPos~=Vector3.new(0,0,0) and not ShipGetNearestMobSM("Captain") then
  1392. if Settings.KillCannon then
  1393. if not ShipGetNearestMobSM("Cannoneer") then
  1394. Tp(CFrame.new(Settings.ShipPos))
  1395. end
  1396. else
  1397. Tp(CFrame.new(Settings.ShipPos))
  1398. end
  1399.  
  1400. end
  1401. if not game.Workspace.Ships:FindFirstChild(plr.Name.."Ship") then
  1402. game:GetService("ReplicatedStorage").Events.ShipEvents.Spawn:InvokeServer("true")
  1403. end
  1404. EquipWpShip()
  1405. KillCaMap()
  1406. local v = ShipGetNearestMobSM("Captain")
  1407. if v then
  1408. if v:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChild("HumanoidRootPart") and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).magnitude<1000 then
  1409. if v.Name=="Marine Captain" or v.Name=="Pirate Captain" and Settings.ShipFarm and v:FindFirstChild("assignedShip") then
  1410. local ship = v.assignedShip.Value
  1411. if ship then
  1412. local function dk(v)
  1413. return not v.Parent or not v:FindFirstChild("HumanoidRootPart") or not v:FindFirstChild("Humanoid") or v.Humanoid.Health==0 or not Settings.ShipFarm
  1414. end
  1415. Kill(v,dk)
  1416. end
  1417. end
  1418. end
  1419. else
  1420. if Settings.KillCannon then
  1421. if Settings.ShipFarm then
  1422. local v=ShipGetNearestMobSM("Cannoneer")
  1423. if v and v:FindFirstChild("HumanoidRootPart") then
  1424. local function dk(v)
  1425. return not v.Parent or not v:FindFirstChild("HumanoidRootPart") or not v:FindFirstChild("Humanoid") or v.Humanoid.Health==0 or not Settings.ShipFarm
  1426. end
  1427. Kill(v,dk)
  1428. end
  1429.  
  1430. end
  1431. end
  1432. end
  1433. end
  1434. if not Settings.ShipFarm then
  1435. AutoClick=false
  1436. end
  1437. end
  1438. end)
  1439.  
  1440. local Tab2 = Window:CreatePage("Auto Stats")
  1441. local Section2 = Tab2:CreateSection("Main")
  1442.  
  1443. for k, v in pairs(Settings.AutoStat) do
  1444. Section2:CreateToggle(k, {Description = false,Toggled=v}, function(state)
  1445. Settings.AutoStat[k] = state
  1446. end)
  1447. end
  1448. spawn(
  1449. function()
  1450. while wait(.5) do
  1451. if Settings.AutoStat then
  1452. for k, v in pairs(Settings.AutoStat) do
  1453. if v and data.Stats.SkillPoints.Value > 0 then
  1454. game.ReplicatedStorage.Events.stats:FireServer(k, nil, 1)
  1455. end
  1456. end
  1457. end
  1458. end
  1459. end
  1460. )
  1461. LocationsCoord = {
  1462. ["Town of Beginnings"] = CFrame.new(965.146, 10, 1195.127),
  1463. ["Marine Fort F-1"] = CFrame.new(2904.113, 25, -994.2),
  1464. ["Sandora"] = CFrame.new(-1316.089, 15, 1129.95),
  1465. ["Shell's Town"] = CFrame.new(-605.248, 15, -4430.41),
  1466. ["Zou"] = CFrame.new(-4458.681, 10, -2502.741),
  1467. ["Restaurant Baratie"] = CFrame.new(-3909.713, 55, -5569.912),
  1468. ["Orange Town"] = CFrame.new(-6999.987, 10, -5345.705),
  1469. ["Mysterious Cliff"] = CFrame.new(2180.005, 415, -8628.285),
  1470. ["Roca Island"] = CFrame.new(5426.218, 20, -4918.854),
  1471. ["Colosseum"] = CFrame.new(-2019.975, 10, -7661.091),
  1472. ["Sphinx Island"] = CFrame.new(-6327.812, 45, -10129.278),
  1473. ["Kori Island"] = CFrame.new(-6684.44, 10, 1828.623),
  1474. ["Arlong Park"] = CFrame.new(652.855, 15, -13122.346),
  1475. ["Land of the Sky"] = CFrame.new(9016.793, 1440, -10542.829),
  1476. ["Knock-Up Stream Rock"] = CFrame.new(8116, 10, -9819),
  1477. ["Gravito's Fort"] = CFrame.new(2611.159, 15, -15359.032),
  1478. ["Fishman Cave"] = CFrame.new(5682.19, 5, -16458.479),
  1479. ["Fishman Island"] = CFrame.new(8003.553, -2150, -17056.971),
  1480. ["Marine Base G-1"] = CFrame.new(-9955.175, 70, -14910.613),
  1481. ["Coco Island"] = CFrame.new(-4262.249, 10, -15531.864),
  1482. ["Reverse Mountain"] = CFrame.new(-14338, 20, -9446),
  1483. ["Shrine"] = CFrame.new(-12184.12890625, 3.2737002372742, -18545.69921875)
  1484. }
  1485. function WTS(part, toggle)
  1486. local screen = workspace.CurrentCamera:WorldToViewportPoint(part)
  1487. return Vector2.new(screen.x, screen.y)
  1488. end
  1489. local esplist = {}
  1490. game:GetService("RunService").Stepped:connect(
  1491. function()
  1492. for k, v in pairs(esplist) do
  1493. v()
  1494. end
  1495. end
  1496. )
  1497. function ESP(part, text, color, toggle)
  1498. local name = Drawing.new("Text")
  1499. name.Text = text
  1500. name.Color = color
  1501. name.Position = WTS(part)
  1502. name.Size = 20.0
  1503. name.Outline = true
  1504. name.Center = true
  1505. name.Visible = true
  1506.  
  1507. table.insert(
  1508. esplist,
  1509. function()
  1510. pcall(
  1511. function()
  1512. if part ~= nil then
  1513. name.Position = WTS(part)
  1514. end
  1515. local _, screen = workspace.CurrentCamera:WorldToViewportPoint(part)
  1516. if screen and Settings[toggle] then
  1517. name.Visible = true
  1518. else
  1519. name.Visible = false
  1520. end
  1521. end
  1522. )
  1523. end
  1524. )
  1525. end
  1526. for k, v in pairs(LocationsCoord) do
  1527. ESP(Vector3.new(v.X, v.Y, v.Z), k, Color3.fromRGB(255, 255, 255), "IslandE")
  1528. end
  1529. local rac = {}
  1530. for k, v in pairs(LocationsCoord) do
  1531. table.insert(rac, k)
  1532. end
  1533.  
  1534. local Tab2 = Window:CreatePage("Misc")
  1535. local Section2 = Tab2:CreateSection("Teleport")
  1536. Section2:CreateDropdown("Teleport", {
  1537. List = rac,
  1538. Default = ""
  1539. }, function(item)
  1540. if item and item~="" then
  1541. local s,e = xpcall(function()Tp(LocationsCoord[item]) end,function(e)
  1542. print(e)
  1543. print(debug.traceback())
  1544. end)
  1545. -- print(s,e)
  1546. end
  1547. end)
  1548. local Section2 = Tab2:CreateSection("Stuff")
  1549. Section2:CreateToggle("Auto Store DF", {Toggled=Settings.AutoStoreDF,Description = false}, function(state)
  1550. Settings.AutoStoreDF = state
  1551. end)
  1552.  
  1553.  
  1554. Section2:CreateToggle("Auto Buso Haki", {Toggled=Settings.AutoBuso,Description = false}, function(state)
  1555. Settings.AutoBuso = state
  1556. end)
  1557. Section2:CreateDropdown("Auto Buso Method", {
  1558. List = {"Always Enable","Enable When Stand Near Mob"},
  1559. Default = Settings.BusoMethod or "Enable When Stand Near Mob"
  1560. }, function(item)
  1561. Settings.BusoMethod=item
  1562.  
  1563. end)
  1564. game.CoreGui.DescendantAdded:Connect(function()
  1565. wait(2)
  1566. pcall(function()
  1567. if game.CoreGui.RobloxPromptGui.promptOverlay:FindFirstChild("ErrorPrompt")
  1568. and Settings.AutoRejoin then
  1569. while wait() do
  1570. game:GetService("TeleportService"):Teleport(1730877806, plr)
  1571. wait(5)
  1572. end
  1573. end
  1574. end)
  1575. end)
  1576. local current = tick()
  1577. local last = current
  1578. -- local humadd = function(v)
  1579. -- if v.Name=="Humanoid" then
  1580. -- v:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
  1581. -- if plr.Character.Humanoid.FloorMaterial == Enum.Material.Air
  1582. -- then
  1583. -- last=tick() --tren troi
  1584. -- else
  1585. -- current=tick() --duoi dat
  1586. -- end
  1587. -- end)
  1588. -- end
  1589. -- end
  1590. -- if plr.Character:FindFirstChild("Humanoid") then
  1591. -- humadd(plr.Character.Humanoid)
  1592. -- end
  1593. function RCDetect()
  1594. if plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health>0 then
  1595. local plrPos = plr.Character.HumanoidRootPart.Position
  1596. local Distance
  1597. if plr.Character.HumanoidRootPart.Position.Y <= 20 then
  1598. Distance = -5
  1599. else
  1600. Distance = -5
  1601. end
  1602. local rcu = RayCast2(Vector3.new(plrPos.X, plrPos.Y, plrPos.Z),Vector3.new(0, Distance, 0))
  1603. if plr.Character.Humanoid.FloorMaterial ~= Enum.Material.Air
  1604. or game.workspace.Ragdolls:FindFirstChild(plr.Name)
  1605. or plr.Character.HumanoidRootPart:FindFirstChild("geppo")
  1606. or plr.Character.HumanoidRootPart:FindFirstChild("SwimPosition")
  1607. or plr.Character:FindFirstChild("ToriFullForm")
  1608. or plr.Character:FindFirstChild("AirBypass")
  1609. or rcu or IsSea() then
  1610. --print("duoi dat")
  1611. current=tick()-- duoi dat
  1612. else
  1613. last=tick() --tren troi
  1614. end
  1615. else
  1616. current=tick() -- duoi dat
  1617. end
  1618. end
  1619. function Detect()
  1620. if game.workspace.PlayerCharacters:FindFirstChild(plr.Name)
  1621. and not game.workspace.Ragdolls:FindFirstChild(plr.Name)
  1622. and not plr.PlayerGui:FindFirstChild("DEATHGUI")
  1623. and not plr.PlayerGui:FindFirstChild("Blackout")
  1624. and plr.Character:FindFirstChild("HumanoidRootPart") then
  1625. return true
  1626. end
  1627. return false
  1628. end
  1629. function SafeModeKick()
  1630. plr:Kick("\n[CFA Hub]\nKicked for suspicious movements (Safe Mode)")
  1631. end
  1632. plr.Character.ChildAdded:Connect(humadd)
  1633. spawn(function()
  1634. while wait() do
  1635. if Detect() then
  1636. local old = plr.Character.HumanoidRootPart.Position
  1637. wait(1)
  1638. local new = plr.Character.HumanoidRootPart.Position
  1639. local speed = (old - new).magnitude
  1640. if Detect() and speed >= 300 and not DisableSafeMode then
  1641. if Settings.SafeMode then
  1642. SafeModeKick()
  1643. else
  1644. if Last then Last() end
  1645. end
  1646. end
  1647. end
  1648.  
  1649. end
  1650. end)
  1651. local LastNguyHiem = tick()
  1652. spawn(function()
  1653. while wait() do
  1654. RCDetect()
  1655.  
  1656. if last-current >8 then
  1657. NguyHiem=true
  1658. wait(1)
  1659. else
  1660. NguyHiem=false
  1661. end
  1662. --print(last-current)
  1663. if Settings.SafeMode and Detect() then
  1664. if plr.Character.HumanoidRootPart.Velocity.Y > 700
  1665. or plr.Character.HumanoidRootPart.Velocity.Y < -700 then
  1666. SafeModeKick()
  1667. end
  1668. if last-current >13 then
  1669. SafeModeKick()
  1670. end
  1671. if game.workspace.Ragdolls:FindFirstChild(plr.Name) then
  1672. if Last then Last() end
  1673. if game.workspace.Ragdolls[plr.Name].HumanoidRootPart.Position.Y < -100
  1674. and (Vector3.new(8073.316, -2016.831, -17376.289) - game.workspace.Ragdolls[plr.Name].HumanoidRootPart.Position).magnitude >= 3000 then
  1675. SafeModeKick()
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end)
  1681.  
  1682.  
  1683. local Section2 = Tab2:CreateSection("Security")
  1684. Section2:CreateToggle("Safe Mode", {Toggled=Settings.SafeMode,Description = "Will kick you if your character having suspicious movements"}, function(state)
  1685. Settings.SafeMode = state
  1686. end)
  1687. Section2:CreateToggle("Auto Kick at 499 rifle shoot", {Toggled=Settings.RifleKick,Description = "Will kick you if you shooted more than 499 shoot"}, function(state)
  1688. Settings.RifleKick = state
  1689. end)
  1690. Section2:CreateToggle("Auto Kick", {Toggled=Settings.AutoKick,Description = "Auto kick you from the game after selected minute"}, function(state)
  1691. Settings.AutoKick = state
  1692. spawn(function()
  1693. while Settings.AutoKick and wait() do
  1694. if Settings.AutoKickTimer then
  1695. pcall(function()
  1696. local CurrentTick = tick()
  1697. repeat wait(1)
  1698. until tick() - CurrentTick >= Settings.AutoKickTimer * 60
  1699. or not Settings.AutoKick
  1700. if Settings.AutoKick then
  1701. plr:Kick("\n[CFA Hub]\n".. Settings.AutoKickTimer .." minute reached (Auto Kick)")
  1702. end
  1703. end)
  1704. end
  1705. end
  1706. end)
  1707. end)
  1708. Section2:CreateSlider("Auto Kick Timer (minute)", {Min = 1, Max = 120, DefaultValue = Settings.AutoKickTimer or 15}, function(value)
  1709. Settings.AutoKickTimer=value
  1710. end)
  1711. Section2:CreateToggle("Auto Rejoin", {Toggled=Settings.AutoRejoin,Description = false}, function(state)
  1712. Settings.AutoRejoin = state
  1713. end)
  1714. Section2:CreateTextbox("PS Code", "(Leave if you want rejoin to normal server)", function(args)
  1715. Settings.PSCode=args
  1716. end,Settings.PSCode)
  1717. local Section2 = Tab2:CreateSection("Local Player")
  1718. Section2:CreateToggle("No Drown", {Toggled=Settings.Nodrown,Description = "Make you cant drown in water"}, function(state)
  1719. Settings.Nodrown = state
  1720. SetEN("Nodrown", "Setting", state)
  1721. end)
  1722. Section2:CreateToggle("No Fall Damage", {Toggled=Settings.NoFallDame,Description = "Make you get no damage when fall"}, function(state)
  1723. Settings.NoFallDame = state
  1724. SetEN("NoFallDame", "Setting", state)
  1725. end)
  1726. Section2:CreateToggle("Dash No Stamina", {Toggled=Settings.DashNoStam,Description = "Dashing wont take stamina"}, function(state)
  1727. Settings.DashNoStam = state
  1728. SetEN("DashNoStam", "Setting", state)
  1729. end)
  1730. -- Section2:CreateToggle("No Clip", {Description = "Make you get no damage when fall"}, function(state)
  1731. -- Settings.Noclip = state
  1732. -- SetEN("Noclip", "Setting", state)
  1733. -- end)
  1734. local ws = 16
  1735. Section2:CreateSlider("WalkSpeed Changer", {Min = 16, Max = 100, DefaultValue = 16}, function(value)
  1736. ws=value
  1737. end)
  1738.  
  1739. spawn(function()
  1740. while wait(1) do
  1741. pcall(function()
  1742. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=ws
  1743. end)
  1744. end
  1745. end)
  1746. local Section2 = Tab2:CreateSection("ESP")
  1747. Section2:CreateToggle("Island ESP", {Toggled=Settings.IslandE,Description = false}, function(state)
  1748. Settings.IslandE=state
  1749. end)
  1750. local Tab2 = Window:CreatePage("Web Hook")
  1751. local Section2 = Tab2:CreateSection("Main")
  1752.  
  1753. Section2:CreateTextbox("Web Hook Url", "Enter here!", function(args)
  1754. Settings.WebHookUrl=args
  1755. end,Settings.WebHookUrl)
  1756. Section2:CreateToggle("Mention Everyone", {Toggled=Settings.MentionEveryone,Description = false}, function(state)
  1757. Settings.MentionEveryone=state
  1758. end)
  1759. local Section2 = Tab2:CreateSection("DF")
  1760. Section2:CreateToggle("DF Webhook", {Toggled=Settings.DFWebHook,Description = "Will notify when you have DF"}, function(state)
  1761. Settings.DFWebHook=state
  1762. end)
  1763. local Tab2 = Window:CreatePage("Settings")
  1764. local Section2 = Tab2:CreateSection("Main")
  1765. Section2:CreateSlider("Tween Speed", {Min = 50, Max = 120, DefaultValue = Settings.vt}, function(value)
  1766. Settings.vt=value
  1767. end)
  1768.  
  1769.  
  1770. function IsBusoActivated()
  1771. if not plr.Character then
  1772. return false
  1773. end
  1774. for k, v in pairs(plr.Character:GetChildren()) do
  1775. if string.match(v.Name, "Buso") then
  1776. return true
  1777. end
  1778. end
  1779. return false
  1780. end
  1781. spawn(
  1782. function()
  1783. while wait(1) do
  1784. if Settings.AutoBuso and data.Stats.BusoMastery.Value > 0 then
  1785. local a = true
  1786. if Settings.BusoMethod == "Enable When Stand Near Mob" then
  1787. local function GetAllNearMob()
  1788. for k, v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  1789. if
  1790. v:FindFirstChild("Humanoid") and v.Humanoid:IsA("Humanoid") and
  1791. v:FindFirstChild("HumanoidRootPart") and
  1792. plr.Character:FindFirstChild("HumanoidRootPart")
  1793. then
  1794. if
  1795. (v.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).magnitude <
  1796. 50
  1797. then
  1798. return true
  1799. end
  1800. end
  1801. end
  1802. return false
  1803. end
  1804. if GetAllNearMob() then
  1805. a = true
  1806. else
  1807. if IsBusoActivated() then
  1808. game:GetService("ReplicatedStorage").Events.Haki:FireServer("Buso")
  1809. end
  1810. a = false
  1811. end
  1812. end
  1813. if a and not IsBusoActivated() then
  1814. game:GetService("ReplicatedStorage").Events.Haki:FireServer("Buso")
  1815. end
  1816. end
  1817. end
  1818. end
  1819. )
  1820.  
  1821. local g = {
  1822. KeyCode = Enum.KeyCode.Unknown,
  1823. UserInputState = Enum.UserInputState.Begin,
  1824. UserInputType = Enum.UserInputType.MouseButton1
  1825. }
  1826.  
  1827. local shooting = false
  1828. local shootpos = CFrame.new(0, 0, 0)
  1829. local cf = getrenv()._G.MouseCF
  1830. getrenv()._G.MouseCF = nil
  1831. setmetatable(
  1832. getrenv()._G,
  1833. {
  1834. __index = function(a, b)
  1835. if b == "MouseCF" then
  1836. if shooting then
  1837. return shootpos
  1838. else
  1839. return cf
  1840. end
  1841. end
  1842. return rawget(a, b)
  1843. end,
  1844. __newindex = function(a, b, c)
  1845. if b == "MouseCF" then
  1846. cf = c
  1847. return
  1848. end
  1849. return rawset(a, b, c)
  1850. end
  1851. }
  1852. )
  1853.  
  1854. local funcr
  1855. function GetReload()
  1856. for k, v in pairs(getgc()) do
  1857. if tostring(getfenv(v).script) == "GunMain" and (getfenv(v).script.Parent) ~= nil then
  1858. if tostring(debug.getconstant(v, 1)) == "Reloaded" then
  1859. -- v(g,false)
  1860. -- print(getfenv(v).script:GetFullName())
  1861. return v
  1862. end
  1863. end
  1864. end
  1865. end
  1866. local func
  1867. function GetClick(x, m)
  1868. for i, v in ipairs(getgc()) do
  1869. if pcall(function() return tostring(getfenv(v).script) end) and tostring(getfenv(v).script) == x and (getfenv(v).script.Parent) ~= nil then
  1870. if
  1871. pcall(
  1872. function()
  1873. getconstant(v, m)
  1874. end
  1875. ) == true
  1876. then
  1877. return v
  1878. end
  1879. end
  1880. end
  1881. end
  1882. func = GetClick("MeleeScript", 85)
  1883. function AttackInCooldown()
  1884. if NguyHiem then return true end
  1885. if not func or getfenv(func).script.Parent == nil then
  1886. func = GetClick("MeleeScript", 85)
  1887. end
  1888. if func then
  1889. return debug.getupvalue(func, 11) >=4
  1890. else
  1891. return false
  1892. end
  1893.  
  1894. end
  1895. local collector = Instance.new("ScreenGui")
  1896. collector.Parent=game.CoreGui
  1897. local c= false
  1898. local g = {
  1899. KeyCode = Enum.KeyCode.Unknown,
  1900. UserInputState = Enum.UserInputState.Begin,
  1901. UserInputType = Enum.UserInputType.MouseButton1
  1902. }
  1903. local func
  1904. function GetClick(x, m)
  1905. for i, v in ipairs(getgc()) do
  1906. if pcall(function() return tostring(getfenv(v).script) end) and tostring(getfenv(v).script) == x and (getfenv(v).script.Parent) ~= nil then
  1907. if pcall(function() getconstant(v, m) end ) == true then
  1908. return v
  1909. end
  1910. end
  1911. end
  1912. end
  1913. function Clickc()
  1914. spawn(function()
  1915. if pcall(function() return tostring(getfenv(func).script) end) and not func or getfenv(func).script.Parent == nil then
  1916. func = GetClick("MeleeScript", 85)
  1917. end
  1918. if func then
  1919. func(g,false)
  1920. end
  1921. end)
  1922. end
  1923. function GetClickGun()
  1924. for k, v in pairs(getgc()) do
  1925. if tostring(getfenv(v).script) == "GunMain" and (getfenv(v).script.Parent) ~= nil then
  1926. if tostring(debug.getconstant(v, 1)) == "script" then
  1927. return v
  1928. end
  1929. end
  1930. end
  1931. end
  1932. local gunfunc
  1933. function ClickcGun()
  1934. spawn(function()
  1935. if pcall(function() return tostring(getfenv(gunfunc).script) end) and not gunfunc or getfenv(gunfunc).script.Parent == nil then
  1936. gunfunc = GetClickGun()
  1937. end
  1938. if gunfunc then
  1939. gunfunc(g,false)
  1940. end
  1941. end)
  1942. end
  1943.  
  1944. local noprint
  1945.  
  1946. local old
  1947. old=hookfunction(getrenv().warn,function(...)
  1948. local self =...
  1949. if self=="peli change" then
  1950. if c then
  1951. if not AttackInCooldown() then
  1952. Clickc()
  1953. end
  1954. return
  1955. end
  1956. if cGun then
  1957. ClickcGun()
  1958. return
  1959. end
  1960. if noprint then return end
  1961. end
  1962. return old(...)
  1963. end)
  1964. local data = game.ReplicatedStorage["Stats"..game.Players.LocalPlayer.Name]
  1965. getgenv().ClickMelee = function()
  1966. c=true
  1967. data.Stats.Peli.Value=data.Stats.Peli.Value+1
  1968. c=false
  1969. noprint=true
  1970. data.Stats.Peli.Value=data.Stats.Peli.Value-1
  1971. noprint=false
  1972. end
  1973. getgenv().ClickGun = function()
  1974. cGun=true
  1975. data.Stats.Peli.Value=data.Stats.Peli.Value+1
  1976. cGun=false
  1977. noprint=true
  1978. data.Stats.Peli.Value=data.Stats.Peli.Value-1
  1979. noprint=false
  1980. end
  1981. function Click(type)
  1982. getgenv().ClickMelee()
  1983. end
  1984.  
  1985. function GetClickGun()
  1986. for k, v in pairs(getgc()) do
  1987. if tostring(getfenv(v).script) == "GunMain" and (getfenv(v).script.Parent) ~= nil then
  1988. if tostring(debug.getconstant(v, 1)) == "script" then
  1989. return v
  1990. end
  1991. end
  1992. end
  1993. end
  1994. local reloadfunc
  1995. function Reload()
  1996. if not reloadfunc or getfenv(reloadfunc).script.Parent == nil then
  1997. reloadfunc = GetReload()
  1998. end
  1999. spawn(
  2000. function()
  2001. reloadfunc()
  2002. end
  2003. )
  2004. end
  2005.  
  2006. function ShootSuke(pos)
  2007. end
  2008. function Shoot(pos)
  2009. shooting = true
  2010. shootpos = pos
  2011. getgenv().ClickGun()
  2012. Reload()
  2013.  
  2014. -- --pcall(Reload)
  2015. -- game:GetService("VirtualInputManager"):SendKeyEvent(true, "R", false, game)
  2016. -- game:GetService("VirtualInputManager"):SendKeyEvent(false, "R", false, game)
  2017. wait(.3)
  2018. shooting = false
  2019. end
  2020.  
  2021. function GetNearestMob(mob)
  2022. local nr = nil
  2023. for k, v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  2024. if v.Name == mob and not v:FindFirstChild("Rac") then
  2025. if
  2026. plr.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("HumanoidRootPart") and
  2027. v:FindFirstChild("Humanoid") and
  2028. v.Humanoid.Health > 0 and
  2029. v:FindFirstChild("Info") and
  2030. v.Info:FindFirstChild("Target")
  2031. then
  2032. local kiet = true
  2033. if mob == "Yeti" then
  2034. local yetiY = 79
  2035. if math.abs(v.HumanoidRootPart.Position.Y - yetiY) > 5 then
  2036. kiet = false
  2037. end
  2038. end
  2039. if v.Info.Target.Value == game.Players.LocalPlayer.Character.HumanoidRootPart and kiet then
  2040. return v
  2041. end
  2042.  
  2043. if not nr and kiet then
  2044. nr = v
  2045. end
  2046. if
  2047. nr and nr:FindFirstChild("HumanoidRootPart") and
  2048. (plr.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude <
  2049. (plr.Character.HumanoidRootPart.Position - nr.HumanoidRootPart.Position).magnitude and
  2050. kiet
  2051. then
  2052. nr = v
  2053. end
  2054. end
  2055. end
  2056. end
  2057. return nr
  2058. end
  2059.  
  2060. function CountNear(mob, mag, kk)
  2061. local kk = function() return true end
  2062. local c = 0
  2063. for k, v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  2064. if v.Name == mob then
  2065. if plr.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("HumanoidRootPart") then
  2066. -- local c = false
  2067. -- if not k then
  2068. -- c=true
  2069. -- else
  2070. -- if v:FindFirstChild("Info") and v.Info.Target==plr.Character.HumanoidRootPart then
  2071. -- c=true
  2072. -- end
  2073. -- end
  2074. if (plr.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude < mag and kk(v) then
  2075. c = c + 1
  2076. end
  2077. end
  2078. end
  2079. end
  2080. return c
  2081. end
  2082. function CheckReq()
  2083. if Settings.FarmMode=="Sword" then
  2084. if IsSkillUnlocked("Rapid Slashes") then
  2085. return true
  2086. end
  2087. end
  2088. if Settings.FarmMode=="Black Leg" then
  2089. if IsSkillUnlocked("Party Table Kick Course") then
  2090. return true
  2091. end
  2092. end
  2093. return false
  2094. end
  2095. function RapidHold()
  2096. if not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then return end
  2097. local cac = game.Players.LocalPlayer.Character.Humanoid
  2098. local rac = cac:GetPlayingAnimationTracks()
  2099. for k,v in pairs(rac) do
  2100. if tostring(v)=="rapidHold" then return true end
  2101. end
  2102. end
  2103. function EquipTool()
  2104. if StoringDF then return end
  2105. if Settings.FarmMode == "Black Leg" then
  2106. if
  2107. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  2108. plr.Backpack:FindFirstChild("BlackLeg")
  2109. then
  2110. plr.Character.Humanoid:EquipTool(plr.Backpack.BlackLeg)
  2111. end
  2112. elseif Settings.FarmMode=="Sword" then
  2113. local sword, equip = GetSword()
  2114. if sword and not equip then
  2115. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  2116. game.Players.LocalPlayer.Character.Humanoid:EquipTool(sword)
  2117. end
  2118. end
  2119. end
  2120. end
  2121. function CanFarm(v)
  2122. return game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") and
  2123. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and
  2124. game.Players.LocalPlayer.Character.Parent == game.Workspace.PlayerCharacters and
  2125. not plr.PlayerGui:FindFirstChild("DEATHGUI") and
  2126. v:FindFirstChild("HumanoidRootPart")
  2127. end
  2128. function InstantTp(pos)
  2129. if plr.Character:FindFirstChild("HumanoidRootPart") then
  2130. plr.Character.HumanoidRootPart.CFrame=pos
  2131. end
  2132. end
  2133. local TpPoss
  2134. do
  2135. local cc = false
  2136. game:GetService("RunService").Stepped:connect(function()
  2137. if not cc and TpPoss then
  2138. cc=true
  2139. pcall(function()
  2140. Tp(TpPoss)
  2141. end)
  2142. cc=false
  2143. else
  2144. end
  2145. end)
  2146. end
  2147. function SendKey(Key,a)
  2148. game:GetService("VirtualInputManager"):SendKeyEvent(
  2149. a,
  2150. Enum.KeyCode[Key],
  2151. false,
  2152. game
  2153. )
  2154. end
  2155. spawn(function()
  2156. while wait() do
  2157. if Settings.Legit then
  2158. if AttackInCooldown() then
  2159. SendKey("F",true)
  2160. else
  2161. SendKey("F",false)
  2162. Click()
  2163. end
  2164. end
  2165. end
  2166. end)
  2167.  
  2168. local mob = "Bandit"
  2169. local olddd
  2170. local pos =
  2171. CFrame.new(
  2172. 1054.63916,
  2173. 8.99998665,
  2174. 1298.18445,
  2175. 0.69716531,
  2176. -9.41179668e-09,
  2177. 0.716910422,
  2178. -2.24304877e-08,
  2179. 1,
  2180. 3.49409817e-08,
  2181. -0.716910422,
  2182. -4.04402911e-08,
  2183. 0.69716531
  2184. )
  2185. local lastclick = tick()
  2186. local lastup = tick()
  2187.  
  2188. while wait() do
  2189. if Settings.Farm then
  2190. if Settings.FarmMode == "Sword" or Settings.FarmMode == "Black Leg" then
  2191. if not StoringDF then
  2192. EquipTool()
  2193. end
  2194. local Dt = CheckQuest(nil,IsAdvanceMode(Settings.FarmPath))
  2195. if Settings.AutoBusoQuest and data.Stats.BusoMastery.Value == 0 and data.Stats.Level.Value > 80 and Settings.FarmMode == "Sword" then
  2196. if GetCurrentQuest() == "Road to Armament" then
  2197. Dt = CheckQuest(nil, nil, "Buso")
  2198. else
  2199. if data.Stats.Peli.Value > 25000 then
  2200. Dt = CheckQuest(nil, nil, "Buso")
  2201. end
  2202. end
  2203. end
  2204. local mob = Dt.Mob
  2205. local Quest = Dt.Questpos
  2206.  
  2207. if data.Stats.SpawnPoint.Value ~= Dt.Island then
  2208. Tp(Dt.Spawn)
  2209. wait(1)
  2210. GetQuest()
  2211. end
  2212.  
  2213. if not game.Workspace.NPCs:FindFirstChild(mob) and not plr.PlayerGui:FindFirstChild("DEATHGUI") then
  2214. Tp(Dt.Mobpos)
  2215. end
  2216. if game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == true then
  2217. if GetCurrentQuest()~=Dt.Quest then
  2218. game:GetService("ReplicatedStorage").Events.Quest:InvokeServer({"quit"})
  2219. end
  2220. end
  2221. --if not syn then Dt.LevelReq=math.huge end
  2222. if
  2223. true and game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == false and
  2224. not game.Players.LocalPlayer.QuestCD.Value and
  2225. data.Stats.Level.Value >= Dt.LevelReq
  2226. then
  2227. Tp(Dt.Questpos)
  2228. wait(1)
  2229. GetQuest(Dt.Quest, true)
  2230. end
  2231. olddd = Dt
  2232.  
  2233. local v = GetNearestMob(mob)
  2234. if v then
  2235. if
  2236. v.Name == mob and Settings.Farm and not plr.PlayerGui:FindFirstChild("DEATHGUI") and
  2237. not v:FindFirstChild("Rac")
  2238. then
  2239. if
  2240. (game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == true or
  2241. game.Players.LocalPlayer.QuestCD.Value or
  2242. ((Dt.LevelReq and data.Stats.Level.Value <= Dt.LevelReq) or not Dt.LevelReq)) and
  2243. v:FindFirstChild("Humanoid") and
  2244. v:FindFirstChild("HumanoidRootPart") and
  2245. v.Humanoid.Health > 0
  2246. then
  2247. MucTieu.MucTieu = v.HumanoidRootPart
  2248.  
  2249. AutoClick = true
  2250. local orgin = v.HumanoidRootPart.Position.Y
  2251.  
  2252. local tk = tick()
  2253. local curstate = 1 -- 1: UP 0: DOWN
  2254. local curr = v.HumanoidRootPart.CFrame
  2255. local function Ff(v)
  2256. if Dt.Mob~="Yeti" then return true end
  2257. local yetiY = 79
  2258. if math.abs(v.HumanoidRootPart.Position.Y - yetiY) < 5 then
  2259. return true
  2260. end
  2261. end
  2262. repeat
  2263. MucTieu.MucTieu = v.HumanoidRootPart
  2264. if
  2265. CheckReq() and
  2266. CountNear(mob, 15,Ff) < CountNear(mob, 1000, Ff) and Dt.Mob~="Yeti"
  2267. then
  2268.  
  2269. for k, v in pairs(game.Workspace.NPCs:GetChildren()) do
  2270. if v.Name == mob then
  2271. if
  2272. (game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible ==
  2273. true or
  2274. game.Players.LocalPlayer.QuestCD.Value or
  2275. ((Dt.LevelReq and data.Stats.Level.Value <= Dt.LevelReq) or
  2276. not Dt.LevelReq)) and
  2277. v:FindFirstChild("Humanoid") and
  2278. v:FindFirstChild("HumanoidRootPart") and
  2279. v.Humanoid.Health > 0 and
  2280. v:FindFirstChild("Info") and
  2281. v.Info:FindFirstChild("Target") and
  2282. v.Info.Target.Value == nil and
  2283. Settings.Farm and Ff(v)
  2284. then
  2285. local t = tick()
  2286. repeat
  2287. wait()
  2288. EquipTool()
  2289. local curr = v.HumanoidRootPart.CFrame
  2290. MucTieu.MucTieu = v.HumanoidRootPart
  2291.  
  2292.  
  2293. local posf = (Settings.FarmMode=="Sword" and Dt.SwordY) or (Settings.FarmMode=="Black Leg" and Dt.BlackLegY)
  2294. if AttackInCooldown() then
  2295. posf=Dt.CooldownY
  2296. end
  2297. local cf = CFrame.new(curr.X, posf, curr.Z)
  2298.  
  2299. Tp(cf)
  2300. Click()
  2301. until not v.Parent or
  2302. not (v:FindFirstChild("Humanoid") and
  2303. v:FindFirstChild("HumanoidRootPart") and
  2304. v.Humanoid.Health > 0) or
  2305. not Settings.Farm or
  2306. not (v:FindFirstChild("Humanoid") and
  2307. v:FindFirstChild("HumanoidRootPart") and
  2308. v.Humanoid.Health > 0) or
  2309. v.Info.Target.Value ~= nil
  2310. or tick() - t > 6
  2311. end
  2312. end
  2313. end
  2314. end
  2315. if v:FindFirstChild("HumanoidRootPart") then
  2316.  
  2317. if (v.HumanoidRootPart.Position-curr.p).magnitude>20 then
  2318. curr = v.HumanoidRootPart.CFrame
  2319. end
  2320.  
  2321. MucTieu.MucTieu = v.HumanoidRootPart
  2322. end
  2323.  
  2324. wait()
  2325. EquipTool()
  2326. if CanFarm(v) then
  2327. if
  2328. v:FindFirstChild("Info") and v.Info:FindFirstChild("Target") and
  2329. v.Info.Target.Value ~= plr.Character.HumanoidRootPart
  2330. then
  2331. curr = v.HumanoidRootPart.CFrame
  2332. end
  2333. local cf
  2334. if Settings.FarmMode == "Black Leg" then
  2335. cf = CFrame.new(curr.X, Dt.BlackLegY, curr.Z)
  2336. else
  2337. if Dt.SwordY then
  2338. cf = CFrame.new(curr.X, Dt.SwordY, curr.Z)
  2339. else
  2340. cf = curr + Vector3.new(0, -11, 0)
  2341. end
  2342. end
  2343. local dist = -1
  2344. if Settings.FarmMode == "Black Leg" then
  2345. dist = 14
  2346. else
  2347. dist = 20
  2348. end
  2349. if CountNear(mob, dist) > 0 then
  2350. if CheckReq() then
  2351. local function Farmable()
  2352. if Dt.Mob=="Yeti" then return false end
  2353. return CountNear(mob, 23,Ff) == CountNear(mob, 1000, Ff) and CountNear(mob, 23,Ff)>0
  2354. end
  2355. if Farmable() then
  2356. if Settings.FarmMode=="Black Leg" and data.Stamina.Value>50 then
  2357. game:GetService("VirtualInputManager"):SendKeyEvent(
  2358. true,
  2359. Enum.KeyCode.X,
  2360. false,
  2361. game
  2362. )
  2363. elseif Settings.FarmMode =="Sword" then
  2364. if IsSkillReady("Rapid Slashes") and data.Stamina.Value>25 then
  2365. if CountNear(mob,23,Ff)>0 then
  2366. game:GetService("VirtualInputManager"):SendKeyEvent(
  2367. true,
  2368. Enum.KeyCode.R,
  2369. false,
  2370. game
  2371. )
  2372. else
  2373. game:GetService("VirtualInputManager"):SendKeyEvent(
  2374. false,
  2375. Enum.KeyCode.R,
  2376. false,
  2377. game
  2378. )
  2379. end
  2380.  
  2381. end
  2382. end
  2383. end
  2384.  
  2385. end
  2386. if not AttackInCooldown() and curstate == 1 and tick() - lastup > 0.4 then
  2387. Click()
  2388. lastclick = tick()
  2389. end
  2390. end
  2391. local oldstate = curstate
  2392. if true then
  2393. if (AttackInCooldown() and tick() - lastclick > 0.6) then
  2394. if Dt.CooldownY then
  2395. cf = CFrame.new(cf.X, Dt.CooldownY, cf.Z)
  2396. curstate = 0
  2397. end
  2398. else
  2399. curstate = 1
  2400. if Dt.Mob == "Yeti" then
  2401. cf = cf + Vector3.new(0, -1, 0)
  2402. end
  2403. if v:FindFirstChild("Humanoid") and v.Humanoid.Jump or v:FindFirstChild("Tvk") then
  2404. if Dt.Mob == "Yeti" then
  2405. cf = cf + Vector3.new(0, 3, 0)
  2406. if not v:FindFirstChild("Tvk") then
  2407. local t = Instance.new("BoolValue", v)
  2408. t.Name = "Tvk"
  2409. game.Debris:AddItem(t, 4)
  2410. end
  2411. else
  2412. -- cf = cf + Vector3.new(0, 6, 0)
  2413. end
  2414.  
  2415.  
  2416. else
  2417. end
  2418. end
  2419. end
  2420.  
  2421. if Dt.Mob~="Yeti" and RapidHold() then
  2422. local Y = Dt.RapidY
  2423. if plr.Character:FindFirstChild("HumanoidRootPart") then
  2424. if syn then
  2425. local rac = curr
  2426. cf = QuayNgang(CFrame.new(rac.X,Y,rac.Z))
  2427. else
  2428. if RapidHold() then
  2429. local v = GetNearestMob(mob)
  2430. if v and v:FindFirstChild("HumanoidRootPart") then
  2431. local rac = v.HumanoidRootPart.CFrame
  2432.  
  2433. -- local bm = plr.Character.UpperTorso:FindFirstChild(rnd) or Instance.new("BodyGyro",game.Players.LocalPlayer.Character.UpperTorso)
  2434. -- bm.Name=rnd
  2435. -- bm.CFrame = QuayNgang(CFrame.new(rac.X,Dt.RapidY,rac.Z))
  2436. -- bm.MaxTorque = Vector3.new(0, math.huge, 0)
  2437. -- bm.D = tonumber(shared.D or 0)
  2438. -- bm.P = tonumber(shared.P or 5000)
  2439. cf = (rac*CFrame.new(0,0,10))
  2440. ---TpPoss=rac*CFrame.new(0,0,7)
  2441. end
  2442. end--plr.Character.Humanoid.PlatformStand=true
  2443. end
  2444. end
  2445. end
  2446. -- if Dt.BlackLegPos then
  2447. -- cf=Dt.BlackLegPos
  2448. -- end
  2449.  
  2450. -- print(curstate,oldstate)
  2451. if oldstate == 0 and curstate == 1 then
  2452. lastup = tick()
  2453. print("Changed")
  2454. end
  2455.  
  2456. local pos = cf
  2457. Tp(pos)
  2458. end
  2459. until not v.Parent or
  2460. not (v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") and
  2461. v.Humanoid.Health > 0) or
  2462. not Settings.Farm or
  2463. not (v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") and
  2464. v.Humanoid.Health > 0) or
  2465. tick() - tk > 60 * 5
  2466. AutoClick = false
  2467. end
  2468. end
  2469. end
  2470. MucTieu.MucTieu = nil
  2471. elseif Settings.FarmMode == "Rifle" or Settings.FarmMode == "Suke" then
  2472. local questdata = CheckQuest("Rifle",IsAdvanceMode())
  2473. if Settings.AutoBusoQuest and data.Stats.BusoMastery.Value == 0 and data.Stats.Level.Value > 80 then
  2474. if GetCurrentQuest() == "Road to Armament" then
  2475. questdata = CheckQuest(nil, nil, "Buso")
  2476. else
  2477. if data.Stats.Peli.Value > 25000 then
  2478. questdata = CheckQuest(nil, nil, "Buso")
  2479. end
  2480. end
  2481. end
  2482.  
  2483. if data.Stats.SpawnPoint.Value ~= questdata.Island then
  2484. Tp(questdata.Spawn)
  2485. GetQuest(questdata.Quest)
  2486. end
  2487.  
  2488. if game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == true then
  2489. if GetCurrentQuest()~=questdata.Quest then
  2490. game:GetService("ReplicatedStorage").Events.Quest:InvokeServer({"quit"})
  2491. end
  2492. end
  2493. --if not syn then questdata.LevelRequest=math.huge end
  2494.  
  2495. if
  2496. game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == false and
  2497. not game.Players.LocalPlayer.QuestCD.Value and
  2498. (questdata.LevelRequest and data.Stats.Level.Value >= questdata.LevelRequest)
  2499. then
  2500. Tp(questdata.Questpos)
  2501. wait(1)
  2502. GetQuest(questdata.Quest, true)
  2503. end
  2504. olddd = questdata
  2505. local pos = questdata.RiflePos or questdata.Mobpos
  2506. Tp(pos)
  2507.  
  2508. for k, v in pairs(game:GetService("Workspace").NPCs:GetChildren()) do
  2509. if
  2510. (game:GetService("Players").LocalPlayer.PlayerGui.Quest.Quest.Visible == true or
  2511. game.Players.LocalPlayer.QuestCD.Value or
  2512. ((questdata.LevelRequest and data.Stats.Level.Value <= questdata.LevelRequest) or
  2513. not questdata.LevelRequest)) and
  2514. v.Name == questdata.Mob and
  2515. Settings.Farm and
  2516. v:FindFirstChild("HumanoidRootPart") and
  2517. v:FindFirstChild("Humanoid") and
  2518. v:FindFirstChild("Head") and
  2519. v.Humanoid.Health > 0
  2520. then
  2521. Tp(pos)
  2522. local tkk = tick()
  2523. repeat
  2524. wait()
  2525. Tp(pos)
  2526. if
  2527. Settings.FarmMode == "Rifle" and
  2528. game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Rifle") and
  2529. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  2530. then
  2531. game.Players.LocalPlayer.Character.Humanoid:EquipTool(
  2532. game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Rifle")
  2533. )
  2534. end
  2535. if v:FindFirstChild("Head") and v:FindFirstChild("HumanoidRootPart") then
  2536. if banvaudau%4==0 then
  2537. if Settings.FarmMode == "Rifle" then
  2538. --print("head")
  2539. Shoot(v.Head.CFrame)
  2540. else
  2541. ShootSuke(v.Head.CFrame)
  2542. end
  2543. else
  2544. if Settings.FarmMode == "Rifle" then
  2545. --print("humroot")
  2546. Shoot(v.HumanoidRootPart.CFrame)
  2547. else
  2548. ShootSuke(v.HumanoidRootPart.CFrame)
  2549. end
  2550. end
  2551.  
  2552. end
  2553. until -- local ohString1 = "fire"
  2554. not Settings.Farm or
  2555. not (v:FindFirstChild("Humanoid") and v:FindFirstChild("Head") and
  2556. v:FindFirstChild("HumanoidRootPart") and
  2557. v.Humanoid.Health > 0) or
  2558. tick() - tkk > 60 * 5
  2559. if tick() - tkk > 60 * 5 then
  2560. if v and not v:FindFirstChild("Rac") then
  2561. local t = Instance.new("BoolValue", v)
  2562. t.Name = "Rac"
  2563. end
  2564. end
  2565. end
  2566. end
  2567. end
  2568. end
  2569. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement