Advertisement
Guest User

Untitled

a guest
Oct 18th, 2022
8,222
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.00 KB | None | 0 0
  1. if not game:IsLoaded() then
  2. repeat game.Loaded:Wait()
  3. until game:IsLoaded()
  4. end
  5. repeat wait(1)
  6. pcall(function()
  7. if game:GetService("Players").LocalPlayer.PlayerGui.Main:FindFirstChild("ChooseTeam") then
  8. if game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Visible == true then
  9. if _G.Team == "Marines" then
  10. for i,v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Marines.Frame.ViewportFrame.TextButton.MouseButton1Click)) do
  11. v.Function()
  12. end
  13. else
  14. for i,v in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton.MouseButton1Click)) do
  15. v.Function()
  16. end
  17. end
  18. end
  19. end
  20. end)
  21. until game.Players.localPlayer.Neutral == false
  22. if _G.Fast_Delay == nil then
  23. _G.Fast_Delay = 0.3
  24. end
  25. spawn(function()
  26. while true do wait()
  27. getgenv().rejoin = game:GetService("CoreGui").RobloxPromptGui.promptOverlay.ChildAdded:Connect(function(Kick)
  28. if not _G.TP_Ser and _G.Rejoin then
  29. if Kick.Name == 'ErrorPrompt' and Kick:FindFirstChild('MessageArea') and Kick.MessageArea:FindFirstChild("ErrorFrame") then
  30. game:GetService("TeleportService"):Teleport(game.PlaceId)
  31. wait(50)
  32. end
  33. end
  34. end)
  35. end
  36. end)
  37.  
  38. local VirtualUser=game:service'VirtualUser'
  39. game:service'Players'.LocalPlayer.Idled:connect(function()
  40. VirtualUser:CaptureController()
  41. VirtualUser:ClickButton2(Vector2.new())
  42. end)
  43.  
  44. spawn(function()
  45. while wait(3) do
  46. game:GetService'VirtualUser':CaptureController()
  47. end
  48. end)
  49.  
  50. Old_World = false
  51. New_World = false
  52. Three_World = false
  53. local placeId = game.PlaceId
  54. if placeId == 2753915549 then
  55. Old_World = true
  56. elseif placeId == 4442272183 then
  57. New_World = true
  58. elseif placeId == 7449423635 then
  59. Three_World = true
  60. end
  61. _G.Color = Color3.fromRGB(68, 202, 186)
  62.  
  63. _G.Setting_table = {
  64. Auto_Farm = false,
  65. FastAttack = true,
  66. Auto_Buso = true,
  67. Auto_Ken = true,
  68. Show_Damage = true,
  69. NoClip = true,
  70. Save_Member = true,
  71. Melee_A = true,
  72. Defense_A = true,
  73. SkillZ = true,
  74. Rejoin = true,
  75. Anti_AFK = true,
  76. K_MAX = 50,
  77. Chest_Lock = 50,
  78. Delay_C = 15
  79. }
  80.  
  81. _G.Check_Save_Setting = "CheckSaveSetting"
  82.  
  83. getgenv()['JsonEncode'] = function(msg)
  84. return game:GetService("HttpService"):JSONEncode(msg)
  85. end
  86. getgenv()['JsonDecode'] = function(msg)
  87. return game:GetService("HttpService"):JSONDecode(msg)
  88. end
  89. getgenv()['Check_Setting'] = function(Name)
  90. if not _G.Dis and not isfolder('Switch Hub BF Premium') then
  91. makefolder('Switch Hub BF Premium')
  92. end
  93. if not _G.Dis and not isfile('Switch Hub BF Premium/'..Name..'.json') then
  94. writefile('Switch Hub BF Premium/'..Name..'.json',JsonEncode(_G.Setting_table))
  95. end
  96. end
  97. getgenv()['Get_Setting'] = function(Name)
  98. if not _G.Dis and isfolder('Switch Hub BF Premium') and isfile('Switch Hub BF Premium/'..Name..'.json') then
  99. _G.Setting_table = JsonDecode(readfile('Switch Hub BF Premium/'..Name..'.json'))
  100. return _G.Setting_table
  101. elseif not _G.Dis then
  102. Check_Setting(Name)
  103. end
  104. end
  105. getgenv()['Update_Setting'] = function(Name)
  106. if not _G.Dis and isfolder('Switch Hub BF Premium') and isfile('Switch Hub BF Premium/'..Name..'.json') then
  107. writefile('Switch Hub BF Premium/'..Name..'.json',JsonEncode(_G.Setting_table))
  108. elseif not _G.Dis then
  109. Check_Setting(Name)
  110. end
  111. end
  112.  
  113. Check_Setting(_G.Check_Save_Setting)
  114. Get_Setting(_G.Check_Save_Setting)
  115.  
  116. if _G.Setting_table.Save_Member then
  117. getgenv()['MyName'] = game.Players.LocalPlayer.Name
  118. print("Save Member")
  119. elseif _G.Setting_table.Save_All_Member then
  120. getgenv()['MyName'] = "AllMember"
  121. print("Save All Member")
  122. else
  123. getgenv()['MyName'] = "None"
  124. _G.Dis = true
  125. end
  126.  
  127. Check_Setting(getgenv()['MyName'])
  128. Get_Setting(getgenv()['MyName'])
  129.  
  130. _G.Setting_table.Key = _G.wl_key
  131. Update_Setting(getgenv()['MyName'])
  132.  
  133. if type(_G.Setting_table.Weapon) ~= 'string' then
  134. for i2,v2 in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  135. if tostring(v2.ToolTip) == "Melee" then
  136. _G.Setting_table.Weapon = v2.Name
  137. end
  138. end
  139. end
  140.  
  141.  
  142. function Text(value)
  143. game.StarterGui:SetCore("SendNotification", {
  144. Title = "Switch Notification",
  145. Text = tostring(value),
  146. Icon = "http://www.roblox.com/asset/?id=9606070311",
  147. Duration = 10
  148. })
  149. end
  150. function Com()
  151. game.StarterGui:SetCore("SendNotification", {
  152. Title = "Switch Notification",
  153. Text = "✅ Complete",
  154. Icon = "http://www.roblox.com/asset/?id=9606070311",
  155. Duration = 5
  156. })
  157. end
  158.  
  159. function TelePBoss(p)
  160. if (p.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude >= 2000 and not Auto_Raid and game.Players.LocalPlayer.Character.Humanoid.Health > 0 then
  161. if NameQuest == "FishmanQuest" then
  162. _G.Stop_Tween = true
  163. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  164. wait(.5)
  165. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(61163.8515625, 11.6796875, 1819.7841796875))
  166. _G.Stop_Tween = nil
  167. elseif Ms == "God's Guard [Lv. 450]" then
  168. _G.Stop_Tween = true
  169. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  170. wait(.5)
  171. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(-4607.82275, 872.54248, -1667.55688))
  172. _G.Stop_Tween = nil
  173. elseif NameQuest == "SkyExp1Quest" then
  174. _G.Stop_Tween = true
  175. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  176. wait(.5)
  177. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(-7894.6176757813, 5547.1416015625, -380.29119873047))
  178. _G.Stop_Tween = nil
  179. elseif NameQuest == "ShipQuest1" then
  180. _G.Stop_Tween = true
  181. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  182. wait(.5)
  183. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(923.21252441406, 126.9760055542, 32852.83203125))
  184. _G.Stop_Tween = nil
  185. elseif NameQuest == "ShipQuest2" then
  186. _G.Stop_Tween = true
  187. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  188. wait(.5)
  189. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(923.21252441406, 126.9760055542, 32852.83203125))
  190. _G.Stop_Tween = nil
  191. elseif NameQuest == "FrostQuest" then
  192. _G.Stop_Tween = true
  193. TP(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
  194. wait(.5)
  195. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("requestEntrance",Vector3.new(-6508.5581054688, 89.034996032715, -132.83953857422))
  196. _G.Stop_Tween = nil
  197. else
  198. Mix_Farm = true
  199. _G.Stop_Tween = true
  200. game.Players.LocalPlayer.Character.Humanoid:ChangeState(15)
  201. repeat wait(.5)
  202. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = p
  203. wait()
  204. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("SetSpawnPoint")
  205. until (p.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < 1500 and game.Players.LocalPlayer.Character.Humanoid.Health > 0
  206. wait(.5)
  207. _G.Stop_Tween = nil
  208. Mix_Farm = nil
  209. end
  210. end
  211. end
  212.  
  213. function CheckQuestBoss()
  214. -- Old World
  215. if _G.SelectBoss == "Saber Expert [Lv. 200] [Boss]" then
  216. MsBoss = "Saber Expert [Lv. 200] [Boss]"
  217. NameBoss = "Saber Expert"
  218. CFrameBoss = CFrame.new(-1458.89502, 29.8870335, -50.633564, 0.858821094, 1.13848939e-08, 0.512275636, -4.85649254e-09, 1, -1.40823326e-08, -0.512275636, 9.6063415e-09, 0.858821094)
  219. elseif _G.SelectBoss == "The Saw [Lv. 100] [Boss]" then
  220. MsBoss = "The Saw [Lv. 100] [Boss]"
  221. NameBoss = "The Saw"
  222. CFrameBoss = CFrame.new(-683.519897, 13.8534927, 1610.87854, -0.290192783, 6.88365773e-08, 0.956968188, 6.98413629e-08, 1, -5.07531119e-08, -0.956968188, 5.21077759e-08, -0.290192783)
  223. elseif _G.SelectBoss == "Greybeard [Lv. 750] [Raid Boss]" then
  224. MsBoss = "Greybeard [Lv. 750] [Raid Boss]"
  225. NameBoss = "Greybeard"
  226. CFrameBoss = CFrame.new(-4955.72949, 80.8163834, 4305.82666, -0.433646321, -1.03394289e-08, 0.901083171, -3.0443168e-08, 1, -3.17633075e-09, -0.901083171, -2.88092288e-08, -0.433646321)
  227. elseif _G.SelectBoss == "The Gorilla King [Lv. 25] [Boss]" then
  228. MsBoss = "The Gorilla King [Lv. 25] [Boss]"
  229. NameBoss = "The Gorilla King"
  230. NameQuestBoss = "JungleQuest"
  231. QuestLvBoss = 3
  232. CFrameQBoss = CFrame.new(-1604.12012, 36.8521118, 154.23732, 0.0648873374, -4.70858913e-06, -0.997892559, 1.41431883e-07, 1, -4.70933674e-06, 0.997892559, 1.64442184e-07, 0.0648873374)
  233. CFrameBoss = CFrame.new(-1223.52808, 6.27936459, -502.292664, 0.310949147, -5.66602516e-08, 0.950426519, -3.37275488e-08, 1, 7.06501808e-08, -0.950426519, -5.40241736e-08, 0.310949147)
  234. TelePBoss(CFrameBoss)
  235. elseif _G.SelectBoss == "Bobby [Lv. 55] [Boss]" then
  236. MsBoss = "Bobby [Lv. 55] [Boss]"
  237. NameBoss = "Bobby"
  238. NameQuestBoss = "BuggyQuest1"
  239. QuestLvBoss = 3
  240. CFrameQBoss = CFrame.new(-1139.59717, 4.75205183, 3825.16211, -0.959730506, -7.5857054e-09, 0.280922383, -4.06310328e-08, 1, -1.11807175e-07, -0.280922383, -1.18718916e-07, -0.959730506)
  241. CFrameBoss = CFrame.new(-1147.65173, 32.5966301, 4156.02588, 0.956680477, -1.77109952e-10, -0.29113996, 5.16530874e-10, 1, 1.08897802e-09, 0.29113996, -1.19218679e-09, 0.956680477)
  242. TelePBoss(CFrameBoss)
  243. elseif _G.SelectBoss == "Yeti [Lv. 110] [Boss]" then
  244. MsBoss = "Yeti [Lv. 110] [Boss]"
  245. NameBoss = "Yeti"
  246. NameQuestBoss = "SnowQuest"
  247. QuestLvBoss = 3
  248. CFrameQBoss = CFrame.new(1384.90247, 87.3078308, -1296.6825, 0.280209213, 2.72035177e-08, -0.959938943, -6.75690828e-08, 1, 8.6151708e-09, 0.959938943, 6.24481444e-08, 0.280209213)
  249. CFrameBoss = CFrame.new(1221.7356, 138.046906, -1488.84082, 0.349343032, -9.49245944e-08, 0.936994851, 6.29478194e-08, 1, 7.7838429e-08, -0.936994851, 3.17894653e-08, 0.349343032)
  250. TelePBoss(CFrameBoss)
  251. elseif _G.SelectBoss == "Mob Leader [Lv. 120] [Boss]" then
  252. MsBoss = "Mob Leader [Lv. 120] [Boss]"
  253. NameBoss = "Mob Leader"
  254. CFrameBoss = CFrame.new(-2848.59399, 7.4272871, 5342.44043, -0.928248107, -8.7248246e-08, 0.371961564, -7.61816636e-08, 1, 4.44474857e-08, -0.371961564, 1.29216433e-08, -0.92824)
  255. elseif _G.SelectBoss == "Vice Admiral [Lv. 130] [Boss]" then
  256. MsBoss = "Vice Admiral [Lv. 130] [Boss]"
  257. NameBoss = "Vice Admiral"
  258. NameQuestBoss = "MarineQuest2"
  259. QuestLvBoss = 2
  260. CFrameQBoss = CFrame.new(-5035.42285, 28.6520386, 4324.50293, -0.0611100644, -8.08395768e-08, 0.998130739, -1.57416586e-08, 1, 8.00271849e-08, -0.998130739, -1.08217701e-08, -0.0611100644)
  261. CFrameBoss = CFrame.new(-5078.45898, 99.6520691, 4402.1665, -0.555574954, -9.88630566e-11, 0.831466436, -6.35508286e-08, 1, -4.23449258e-08, -0.831466436, -7.63661632e-08, -0.555574954)
  262. TelePBoss(CFrameBoss)
  263. elseif _G.SelectBoss == "Warden [Lv. 220] [Boss]" then
  264. MsBoss = "Warden [Lv. 220] [Boss]"
  265. NameBoss = "Warden"
  266. NameQuestBoss = "ImpelQuest"
  267. QuestLvBoss = 1
  268. CFrameQBoss = CFrame.new(4851.35059, 5.68744135, 743.251282, -0.538484037, -6.68303741e-08, -0.842635691, 1.38001752e-08, 1, -8.81300792e-08, 0.842635691, -5.90851599e-08, -0.538484037)
  269. CFrameBoss = CFrame.new(5232.5625, 5.26856995, 747.506897, 0.943829298, -4.5439414e-08, 0.330433697, 3.47818627e-08, 1, 3.81658154e-08, -0.330433697, -2.45289105e-08, 0.943829298)
  270. TelePBoss(CFrameBoss)
  271. elseif _G.SelectBoss == "Chief Warden [Lv. 230] [Boss]" then
  272. MsBoss = "Chief Warden [Lv. 230] [Boss]"
  273. NameBoss = "Chief Warden"
  274. NameQuestBoss = "ImpelQuest"
  275. QuestLvBoss = 2
  276. CFrameQBoss = CFrame.new(4851.35059, 5.68744135, 743.251282, -0.538484037, -6.68303741e-08, -0.842635691, 1.38001752e-08, 1, -8.81300792e-08, 0.842635691, -5.90851599e-08, -0.538484037)
  277. CFram
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement