Advertisement
Honansik

Last Pirates GUI Script

Dec 18th, 2021
2,402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.56 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet('https://raw.githubusercontent.com/astraln/SentinelUILIB/main/UI.lua', true))()
  2.  
  3. local win = Library:Window('Last Pirates')
  4.  
  5. local ss = win:Tab("MAIN")
  6. local sss = win :Tab("MISC")
  7.  
  8. local Mobs_Table = {}
  9. for i,v in pairs(game:GetService("Workspace")["Mon in game"].npc:GetChildren()) do
  10.     if v:IsA("Model") and not table.find(Mobs_Table,v.Name) then
  11.         table.insert(Mobs_Table,v.Name)
  12.     end
  13. end
  14.  
  15.     local tool_table = {}
  16.     for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  17.         if v:IsA("Tool") then
  18.             table.insert(tool_table,v.Name)
  19.         end
  20. end
  21. SelectedWeapon = nil
  22.  
  23.     ss:Dropdown("Select Tool",tool_table,function(SelectedOption)
  24.         SelectedWeapon = SelectedOption
  25.     end)
  26.  
  27.     ss:Toggle("AutoEquip",false,function(t)
  28.                   Equip = t
  29.               while Equip do wait()
  30.                   pcall(function()
  31.                   for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  32.               if v.Name == SelectedWeapon then
  33.   game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  34.               end
  35.                   end
  36.                  
  37.                   end)
  38.               end
  39.  
  40.     end)
  41.  
  42. ss:Dropdown("Mobs To Farm",Mobs_Table,function(t)
  43. npc = t
  44. end)
  45.  
  46. ss:Toggle("Autofarm Mobs",false,function(t)
  47.  
  48.     pcall(function()
  49.     game:GetService("RunService").Stepped:Connect(function()
  50.         if Enabled then
  51.             game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  52.         end
  53.     end)
  54. end)
  55.  
  56. Enabled = t
  57. while Enabled do wait()
  58.     pcall(function()
  59. for i,v in pairs(game:GetService("Workspace")["Mon in game"].npc:GetChildren()) do
  60. if v.Name == npc and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  61.   repeat
  62.       wait()
  63.       game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.HumanoidRootPart.Position + Vector3.new(0,Distance,0),v.HumanoidRootPart.Position)
  64. until v.Humanoid.Health <= 0 or Enabled == false
  65. end
  66. end
  67. end)
  68. end
  69. end)
  70.  
  71.  
  72.  
  73. Distance = 5
  74.  
  75. ss:Toggle("Auto Attack",false,function(t)
  76.     attack =t
  77.     while attack do wait()
  78.         pcall(function()
  79. local virtualUser = game:GetService('VirtualUser')
  80. virtualUser:CaptureController()
  81. wait()
  82. virtualUser:Button1Down(Vector2.new(), CFrame.new())
  83. wait()
  84. virtualUser:Button1Down(Vector2.new(), CFrame.new())
  85. end)
  86. end
  87. end)
  88.  
  89. sss:Button("COPY DISCORD LINK",function(t)
  90. setclipboard("https://discord.gg/wynPh2mvs3")
  91. end)
  92.  
  93. sss:Button("SCRIPT MADE BY VEP")
  94. sss:Button("UI MADE BY ASTRAL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement