SQUIDMAN740

EZ dubs island royale taking that LLLLL

Mar 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.08 KB | None | 0 0
  1. --<< Created By Unlisting >>--
  2.  
  3. local Plr = game:GetService("Players").LocalPlayer;
  4.  
  5. --<< Aimbot >>--
  6.  
  7. local GetNearestPlayer = function()
  8.     local CLP = math.huge;
  9.     local NearestPlayer = nil;
  10.     for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  11.         if v and v ~= Plr and Plr.Character and game:GetService("Workspace").Characters:FindFirstChild(v.Name) and v.Character:FindFirstChild("HumanoidRootPart") then
  12.             local Distance = v:DistanceFromCharacter(Plr.Character.HumanoidRootPart.Position);
  13.             if Distance < CLP and (Plr.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude > 1 then
  14.                 CLP = Distance;
  15.                 NearestPlayer = v;
  16.             end;
  17.         end;
  18.     end;
  19.     return NearestPlayer;
  20. end;
  21.  
  22. local ViablePart = function(self)
  23.     if type(self) == "userdata" then
  24.         if self.Character then
  25.             local Char = self.Character
  26.             if false--[[Char:FindFirstChild("Head")]] then
  27.                 return Char:FindFirstChild("Head");
  28.             elseif Char:FindFirstChild("HumanoidRootPart") then
  29.                 return Char:FindFirstChild("HumanoidRootPart");
  30.             end;
  31.         end;
  32.     end;
  33.     return nil;
  34. end;
  35.  
  36. local mt = getrawmetatable(game);
  37. setreadonly(mt, false);
  38. local namecall = mt.__namecall;
  39.  
  40. mt.__namecall = newcclosure(function(...)
  41.     if not checkcaller() then
  42.         if table.remove({...}) == "FindPartOnRayWithIgnoreList" and (getfenv(2).script.Name == "Weapon_Handle" or getfenv(2).script.Name == "Weapon_Replication") then
  43.             if table.remove({...}, 3) == getrenv()._G.clientGunIgnores2() then
  44.                 if GetNearestPlayer() and ViablePart(GetNearestPlayer()) then
  45.                     local Part = ViablePart(GetNearestPlayer());
  46.                     if Part then
  47.                         return Part, Part.Position - Vector3.new(math.random(), -math.random(), math.random()), Vector3.new(1 - math.random(), math.random(), 0 - math.random()), Part.Material;
  48.                     end;
  49.                 end;
  50.             end;
  51.         end;
  52.     end;
  53.     return namecall(...);
  54. end);
  55.  
  56. --<< Chams >>--
  57.  
  58. local ChamsFolder = Instance.new("Folder", game:GetService("CoreGui"));
  59.  
  60. local SetChams = function(plr)
  61.     if not type(plr) == "userdata" and not plr:IsA("Player") and not plr.Parent == game:GetService("Players") then
  62.         return false;
  63.     end;
  64.     if plr and not plr.Character then
  65.         repeat
  66.             wait();
  67.         until plr.Character;
  68.         wait(0.5);
  69.     end;
  70.     if not ChamsFolder:FindFirstChild(plr.Name) then
  71.         Instance.new("Folder", ChamsFolder).Name = plr.Name;
  72.     end;
  73.     if plr and plr.Character and plr.Character:FindFirstChild("Humanoid") and ChamsFolder:FindFirstChild(plr.Name) then
  74.         for i, v in pairs(plr.Character:GetChildren()) do
  75.             if v:IsA("BasePart") then
  76.                 if ChamsFolder:FindFirstChild(plr.Name) then
  77.                     local Chams = Instance.new("BoxHandleAdornment", ChamsFolder[plr.Name]);
  78.                     Chams.ZIndex = 3;
  79.                     Chams.AlwaysOnTop = true;
  80.                     Chams.Adornee = v;
  81.                     Chams.Color3 = Color3.new(1, 50 / 255, 50 / 255);
  82.                     Chams.Size = v.Size + Vector3.new(0.1, 0.1, 0.1);
  83.                     Chams.Transparency = 0.3;
  84.                 end;
  85.             end;
  86.         end;
  87.         plr.Character.Humanoid.Died:Connect(function()
  88.             if ChamsFolder:FindFirstChild(plr.Name) then
  89.                 pcall(game.Destroy, ChamsFolder[plr.Name]);
  90.             end;
  91.         end);
  92.     end;
  93. end;
  94.  
  95. local SetChamsColor = function(self, k)
  96.     if not type(self) == "userdata" and not self:IsA("Player") and not typeof(k) == "Color3" then
  97.         return false;
  98.     end;
  99.     if ChamsFolder:FindFirstChild(self.Name) and not (ChamsFolder[self.Name]:FindFirstChildOfClass("BoxHandleAdornment").Color3 == k) then
  100.         for i, v in pairs(ChamsFolder[self.Name]:GetChildren()) do
  101.             if v:IsA("BoxHandleAdornment") then
  102.                 v.Color3 = k;
  103.             end;
  104.         end;
  105.     end;
  106.     return true;
  107. end;
  108.  
  109. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  110.     if v ~= Plr then
  111.         coroutine.wrap(SetChams)(v);
  112.         v.CharacterAdded:Connect(function()
  113.             SetChams(v);
  114.         end);
  115.     end;
  116. end;
  117.  
  118. game:GetService("Players").PlayerAdded:Connect(function(self)
  119.     SetChams(self);
  120. end);
  121.  
  122. game:GetService("Players").PlayerRemoving:Connect(function(self)
  123.     if ChamsFolder:FindFirstChild(self.Name) then
  124.         pcall(game.Destroy, ChamsFolder[self.Name]);
  125.     end;
  126. end);
  127.  
  128. game:GetService("RunService").RenderStepped:Connect(function()
  129.     getrenv()._G.boop = nil;
  130. end);
Add Comment
Please, Sign In to add comment