Advertisement
altf4foradmin

Pilfering Pirates script

Apr 27th, 2022
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.61 KB | None | 0 0
  1. local plrs = game:GetService'Players'
  2. local plr = plrs.LocalPlayer
  3. local rs = game:GetService'RunService'
  4. local mouse = plr:GetMouse()
  5. local uis = game:GetService'UserInputService'
  6. local walkSpeed
  7.  
  8. local function Notify(title,text,duration)
  9.     game:GetService'StarterGui':SetCore('SendNotification',{
  10.         Title = tostring(title),
  11.         Text = tostring(text),
  12.         Duration = tonumber(duration),
  13.     })
  14. end
  15.  
  16. Notify('Made by KAKOYTO_LOXX','Ctrl+clicl - tp\nv - kill all (equip sword)\nshift - more speed',10)
  17.  
  18. local safe = Instance.new('Part',workspace)
  19. safe.Name = 'SafePart'
  20. safe.Anchored = true
  21. safe.Size = Vector3.new(2048,1,2048)
  22. safe.CFrame = CFrame.new(186,246,0)
  23. safe.Transparency = 0.5
  24.  
  25. pcall(function()
  26.     for _,v in next,workspace.WaterParts:GetChildren() do
  27.         v:Destroy()
  28.     end
  29. end)
  30.  
  31. mouse.KeyDown:connect(function(key)
  32.     if key == 'v' then
  33.         for _,v in next,plrs:GetPlayers() do
  34.             pcall(function()
  35.                 if v~=plr and (v.Team~=plr.Team or v.Team == game:GetService'Teams'['Not Playing']) and v.Character and plr.Character:FindFirstChild'Sword' then
  36.                     plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  37.                     wait(0.3)
  38.                 end
  39.             end)
  40.         end
  41.     end
  42. end)
  43.  
  44. mouse.Button1Down:connect(function()
  45.     if not uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  46.         return
  47.     end
  48.     if not mouse.Hit then
  49.         return
  50.     end
  51.     if plr.Character and plr.Character:FindFirstChild'HumanoidRootPart' then
  52.         plr.Character:FindFirstChild'HumanoidRootPart'.CFrame = mouse.Hit + Vector3.new(0,4,0)
  53.     end
  54. end)
  55. local cd = false
  56. spawn(function()
  57.     while true do rs.RenderStepped:wait()
  58.         pcall(function()
  59.             if plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Swimming or plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Ragdoll then
  60.                 plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  61.             end
  62.         end)
  63.         pcall(function()
  64.             if not uis:IsKeyDown(Enum.KeyCode.LeftShift) then
  65.                 walkSpeed = 16
  66.                 plr.Character.Humanoid.WalkSpeed = walkSpeed
  67.             elseif uis:IsKeyDown(Enum.KeyCode.LeftShift) then
  68.                 walkSpeed = walkSpeed+1
  69.                 plr.Character.Humanoid.WalkSpeed = walkSpeed
  70.                 spawn(function()
  71.                     pcall(function()
  72.                         if not cd then
  73.                             cd = true
  74.                             plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p,plr.Character.HumanoidRootPart.CFrame.p+Vector3.new(workspace.Camera.CFrame.LookVector.X,0,workspace.Camera.CFrame.LookVector.Z))*CFrame.Angles(0,math.rad(30),0)
  75.                             wait()
  76.                             plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p,plr.Character.HumanoidRootPart.CFrame.p+Vector3.new(workspace.Camera.CFrame.LookVector.X,0,workspace.Camera.CFrame.LookVector.Z))*CFrame.Angles(0,math.rad(-30),0)
  77.                             wait()
  78.                             cd = false
  79.                         end
  80.                     end)
  81.                 end)
  82.             end
  83.         end)
  84.         pcall(function()
  85.             if plr.Character:FindFirstChild'InBoat' then
  86.                 for _,v in next,workspace.MapItems:GetDescendants() do
  87.                     if v.Name == 'SeatWeld' and v.Part1 == plr.Character.HumanoidRootPart then
  88.                         if v.Parent.Parent.Name ~= 'speed' then
  89.                             v.Parent.Parent.Base.BodyThrust.Force = Vector3.new(v.Parent.Parent.Base.BodyThrust.Force.X*(walkSpeed/4),v.Parent.Parent.Base.BodyThrust.Force.Y*(walkSpeed/4),v.Parent.Parent.Base.BodyThrust.Force.Z*(walkSpeed/4))
  90.                         else
  91.                             v.Parent.Parent.Base.BodyThrust.Force = Vector3.new(v.Parent.Parent.Base.BodyThrust.Force.X*(walkSpeed/8),v.Parent.Parent.Base.BodyThrust.Force.Y*(walkSpeed/8),v.Parent.Parent.Base.BodyThrust.Force.Z*(walkSpeed/8))
  92.                         end
  93.                     end
  94.                 end
  95.             end
  96.         end)
  97.     end
  98. end)
  99. spawn(function()
  100.     while true do wait(0.1)
  101.         pcall(function()
  102.             if plr.Character:FindFirstChild'Sword' then
  103.                 for _,v in next,game.Players:GetPlayers() do
  104.                     if plr~=v and v.Character and (v.Team~=plr.Team or v.Team == game:GetService'Teams'['Not Playing']) and v:DistanceFromCharacter(plr.Character.HumanoidRootPart.Position)<20 then
  105.                         pcall(function()
  106.                             plr.Character.Sword.Activate:FireServer()
  107.                             firetouchinterest(plr.Character.Sword.Handle,v.Character.HumanoidRootPart,0)
  108.                             firetouchinterest(plr.Character.Sword.Handle,v.Character.HumanoidRootPart,1)
  109.                         end)
  110.                     end
  111.                 end
  112.             end
  113.         end)
  114.     end
  115. end)
  116. while true do wait(1)
  117.     pcall(function()
  118.         for _,x in next,workspace:GetDescendants() do
  119.             if x.Name == 'Gold' and x.Parent.Name == 'Chest' then
  120.                 for _,v in next,x:GetChildren() do
  121.                     if v:IsA'BasePart' then
  122.                         pcall(function()
  123.                             firetouchinterest(v,plr.Character.HumanoidRootPart,0)
  124.                             firetouchinterest(v,plr.Character.HumanoidRootPart,1)
  125.                         end)
  126.                     end
  127.                 end
  128.             end
  129.         end
  130.     end)
  131. end
  132.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement