Advertisement
zhangfengshan

国王遗产

Feb 18th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. --Bypass
  2. if game:GetService("Players").LocalPlayer.Character.Services:FindFirstChild("Client") then
  3. game:GetService("Players").LocalPlayer.Character.Services["Client"].Disabled = true
  4. end
  5. wait(0.2)
  6. if placeId == 4520749081 then
  7. NameGame = "King Legacy Sea1"
  8. elseif placeId == 6381829480 then
  9. NameGame = "King Legacy Sea2"
  10. elseif placeId == 5931540094 then
  11. NameGame = "King Legacy Raid"
  12. end
  13. wait(0.2)
  14. --Config----------------------------
  15. SelectWeapon = "None"
  16. ------------------------------------
  17. wait(0.2)
  18. game.StarterGui:SetCore("SendNotification", {
  19. Title = "Hee Na Yed Hub",
  20. Text = "Checking Game..",
  21. Icon = "",
  22. Duration = 1
  23. })
  24. wait(1.25)
  25. game.StarterGui:SetCore("SendNotification", {
  26. Title = "Hee Na Yed Hub",
  27. Text = NameGame,
  28. Icon = "",
  29. Duration = 1
  30. })
  31. wait(1.25)
  32. game.StarterGui:SetCore("SendNotification", {
  33. Title = "Hee Na Yed Hub",
  34. Text = "Waiting..",
  35. Icon = "",
  36. Duration = 4
  37. })
  38. wait(4)
  39. --Theme--
  40. --LightTheme,DarkTheme,GrapeTheme,BloodTheme,Ocean,Midnight,Sentinel,Synapse,Serpent
  41. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  42. local Window = Library.CreateLib("Hee [Name] Na Yed Hub | Premium Script", "GrapeTheme")
  43. local Tab = Window:NewTab("Main")
  44. local Section = Tab:NewSection("Auto Farm")
  45.  
  46. MonList = {
  47. "Soldier [Lv. 1]",
  48. "Clown Pirate [Lv. 10]"
  49. }
  50.  
  51. Modelist = {
  52. "Behind",
  53. "Above"
  54. }
  55.  
  56. Section:NewDropdown("Select Mon", "Select Mon to Auto Farm", MonList, function(string)
  57. MonSelect = string
  58. end)
  59.  
  60. Section:NewDropdown("Select Mode", "Select Mode to Auto Farm", Modelist, function(string)
  61. ModeSelect = string
  62. end)
  63.  
  64. Section:NewToggle("Auto Farm Level", "Start Auto Farm Level", function(state)
  65. _G.AutoFarmLevel = state
  66. end)
  67.  
  68. Section:NewToggle("Auto Equip", "Auto Equip Weapon/Tool", function(state)
  69. _G.AutoEquip = state
  70. end)
  71.  
  72. local twoSection = Tab:NewSection("Misc")
  73.  
  74. twoSection:NewTextBox("Message", "Spam this message", function(txt)
  75. message = txt
  76. repeat wait()
  77. local A_1 = message
  78. local A_2 = "All"
  79. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  80. Event:FireServer(A_1, A_2)
  81. wait(3)
  82. until _G.AutoMessage == false
  83. end)
  84.  
  85. function AutoFarmLevel()
  86. for i,v in pairs(game:GetService("Workspace").Monster.Mon:GetChildren()) do
  87. if v.Name == MonSelect then
  88. repeat wait()
  89. if ModeSelect == "Behind" then
  90. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  91. elseif ModeSelect == "Above" then
  92. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(3,5,0) * CFrame.Angles(math.rad(45), math.rad(180), math.rad(180))
  93. end
  94. game:GetService('VirtualUser'):CaptureController()
  95. game:GetService('VirtualUser'):ClickButton1(Vector2.new(851, 158), game:GetService("Workspace").Camera.CFrame)
  96. until _G.AutoFarmLevel == false or v.Humanoid.Health <= 0
  97. end
  98. end
  99. end
  100.  
  101. spawn(function()
  102. while wait(0.1) do
  103. if _G.AutoFarmLevel then
  104. pcall(function()
  105. AutoFarmLevel()
  106. end)
  107. end
  108. end
  109. end)
  110.  
  111. spawn(function()
  112. while wait(0.3) do
  113. if _G.AutoEquip then
  114. pcall(function()
  115. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(SelectWeapon))
  116. end)
  117. end
  118. end
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement