Universal Script 📌
48.2k Views
4 Executions

crtl28 chaos

Universal Script 📌
hannipham
hanniphamPublished 5
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

chaos killauracc

View Raw
 if shared.settings then return end

shared.settings = {
   killaura = true,
   maxdistance = 12,
   debugging = true
}

local Players = game:GetService("Players")
local lp = Players.LocalPlayer or Players:GetPropertyChangedSignal("LocalPlayer"):Wait() or Players.LocalPlayer

local function getchar(plr,yield)
   local plr = plr or lp
   return plr.Character or yield and plr.CharacterAdded:Wait()
end

local function gethumanoid(plr,yield)
   local plr = plr or lp
   local char = getchar(plr,yield)
   return yield and char:WaitForChild("Humanoid") or char:FindFirstChildWhichIsA("Humanoid")
end

local function getDamageRemote()
   local char = getchar(nil,true)
   local Tool = char:FindFirstChildWhichIsA("Tool")
   local Remote = Tool and Tool:FindFirstChild("DamageRemote")
   return Remote
end

local function GetClosestPlayer()
   local dist = shared.settings.maxdistance or 1/0
   local closest_player

   for i,v in next, Players:GetPlayers() do
       if v ~= lp then
           local char = getchar(v)
           if char and not char:FindFirstChildWhichIsA("ForceField") then
               local BasePart = char:FindFirstChildWhichIsA("BasePart")
               local Humanoid = gethumanoid(v)
               local DistanceFromTarget = BasePart and lp:DistanceFromCharacter(BasePart.CFrame.Position)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
170.9k
1.4M
Bumped 3 minutes ago
Key System
Script hub
16.4k
3.2k
Bumped 2 hours ago
Key System
Paid
Script hub
17.0k
86.9k
Bumped 2 hours ago
Script hub
311
46
Approved 4 hours ago