SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ Some Settings --]] | |
| 2 | local Aura_Range = 200 -- Edit here | |
| 3 | local AmountOfDamage = 20 -- Edit here for insta destroy | |
| 4 | ||
| 5 | --[[ Keybind Settings --]] | |
| 6 | --[[ | |
| 7 | Q - Insta Destroy | |
| 8 | E - Level Farm | |
| 9 | V - Kill Aura | |
| 10 | --]] | |
| 11 | ||
| 12 | warn("Made by Hamii (Hamii#4518) / Tritium (on v3rm), thanks for kill aura helping Floof!")
| |
| 13 | ||
| 14 | local Player = game:GetService("Players").LocalPlayer
| |
| 15 | local Mouse = Player:GetMouse() | |
| 16 | local Folder = workspace.Critters | |
| 17 | ||
| 18 | local Damage = function(Part) | |
| 19 | pcall(function() | |
| 20 | local A = Part | |
| 21 | local B = Part.Position | |
| 22 | local C = {
| |
| 23 | owned = true, | |
| 24 | origin = Player.Character.Head.Position, | |
| 25 | position = Part.Position, | |
| 26 | velocity = Player.Character.Head.CFrame.lookVector * Vector3.new(500, 100, 500), | |
| 27 | acceleration = Vector3.new(0, -156.2, 0), | |
| 28 | age = os.time(), | |
| 29 | toolFrom = "Magnetite Crossbow", | |
| 30 | object = game:GetService("ReplicatedStorage").Projectiles:findFirstChild("Bolt")
| |
| 31 | } | |
| 32 | local D = (Player.Character.Head.Position - Part.Position).magnitude | |
| 33 | game:GetService("ReplicatedStorage").Events.ProjectileImpact:FireServer(A, B, C, D)
| |
| 34 | end) | |
| 35 | end | |
| 36 | ||
| 37 | Mouse.KeyUp:connect(function(key) | |
| 38 | if key == "q" then | |
| 39 | for i = 1, AmountOfDamage do | |
| 40 | if Mouse.Target and Mouse.Target.ClassName ~= "Terrain" then | |
| 41 | Damage(Mouse.Target) | |
| 42 | end | |
| 43 | end | |
| 44 | end | |
| 45 | end) | |
| 46 | ||
| 47 | Mouse.KeyUp:connect(function(key) | |
| 48 | if key == "e" then | |
| 49 | while wait() do | |
| 50 | for i,v in pairs(workspace:GetChildren()) do | |
| 51 | if string.find(v.Name:lower(), "bush") or string.find(v.Name:lower(), "tree") or string.find(v.Name:lower(), "ice") or string.find(v.Name:lower(), "rock") then | |
| 52 | for i,v in pairs(v:GetChildren()) do | |
| 53 | if v.ClassName == "Part" or v.ClassName == "Union" then | |
| 54 | spawn(function() | |
| 55 | for i = 1, 50 do | |
| 56 | Damage(v) | |
| 57 | wait() | |
| 58 | end | |
| 59 | end) | |
| 60 | end | |
| 61 | end | |
| 62 | elseif v:findFirstChild("PrimaryPart") then
| |
| 63 | spawn(function() | |
| 64 | for i = 1, 50 do | |
| 65 | Damage(v.PrimaryPart) | |
| 66 | wait() | |
| 67 | end | |
| 68 | end) | |
| 69 | elseif game:GetService("Players"):GetPlayerFromCharacter(v) then
| |
| 70 | spawn(function() | |
| 71 | for i = 1, 50 do | |
| 72 | Damage(v.Head) | |
| 73 | wait() | |
| 74 | end | |
| 75 | end) | |
| 76 | end | |
| 77 | end | |
| 78 | end | |
| 79 | end | |
| 80 | end) | |
| 81 | ||
| 82 | local orange = function(part, strength) | |
| 83 | if part:IsDescendantOf(Player.Character) then return nil end | |
| 84 | if part and part.Parent and part.Parent.Parent then | |
| 85 | if part.Parent:findFirstChild("Head") then
| |
| 86 | for i = 1, 5 * strength do | |
| 87 | Damage(part.Parent.Head) | |
| 88 | end | |
| 89 | elseif part.Parent.Parent:findFirstChild("Head") then
| |
| 90 | for i = 1, 5 * strength do | |
| 91 | Damage(part.Parent.Parent.Head) | |
| 92 | end | |
| 93 | else | |
| 94 | if part.Parent ~= workspace then | |
| 95 | for i,v in pairs(part.Parent:GetChildren()) do | |
| 96 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 97 | for i = 1, 2.5 * strength do | |
| 98 | Damage(v) | |
| 99 | end | |
| 100 | end | |
| 101 | end | |
| 102 | end | |
| 103 | end | |
| 104 | for i = 1, 2.5 * strength do | |
| 105 | Damage(part) | |
| 106 | end | |
| 107 | end | |
| 108 | end | |
| 109 | ||
| 110 | local myPos = function() | |
| 111 | return Player.Character.HumanoidRootPart.Position | |
| 112 | end | |
| 113 | ||
| 114 | Mouse.KeyDown:connect(function(key) | |
| 115 | if key == "v" then | |
| 116 | --warn("Pressed v, Kill Aura made by Floof and bypassed by Hamii!")
| |
| 117 | for i, v in pairs(workspace.Critters:GetChildren()) do | |
| 118 | if v:findFirstChild("HumanoidRootPart") then
| |
| 119 | local Pos = v.HumanoidRootPart.Position | |
| 120 | local Distance = (Pos - myPos()).magnitude | |
| 121 | if Distance <= Aura_Range then | |
| 122 | orange(v.HumanoidRootPart, 8) | |
| 123 | end | |
| 124 | elseif v:findFirstChild("Torso") then
| |
| 125 | local Pos = v.Torso.Position | |
| 126 | local Distance = (Pos - myPos()).magnitude | |
| 127 | if Distance <= Aura_Range then | |
| 128 | orange(v.Torso, 8) | |
| 129 | end | |
| 130 | else | |
| 131 | local Part = nil | |
| 132 | for i,v in pairs(v:GetChildren()) do | |
| 133 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 134 | Part = v | |
| 135 | end | |
| 136 | end | |
| 137 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 138 | Part = v | |
| 139 | end | |
| 140 | if Part then | |
| 141 | orange(Part, 14) | |
| 142 | end | |
| 143 | end | |
| 144 | end | |
| 145 | wait() | |
| 146 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 147 | if v ~= Player and v.Character then | |
| 148 | local HRP = v.Character:findFirstChild("HumanoidRootPart")
| |
| 149 | if HRP then | |
| 150 | local Distance = (HRP.Position - myPos()).magnitude | |
| 151 | if Distance <= Aura_Range then | |
| 152 | orange(HRP, 15) | |
| 153 | end | |
| 154 | end | |
| 155 | end | |
| 156 | end | |
| 157 | wait() | |
| 158 | for i,v in pairs(workspace:GetChildren()) do | |
| 159 | if string.find(v.Name:lower(), "bush") or string.find(v.Name:lower(), "ice") or string.find(v.Name:lower(), "tree") or string.find(v.Name:lower(), "node") or string.find(v.Name:lower(), "wall") or string.find(v.Name:lower(), "stone") or string.find(v.Name:lower(), "mound") or string.find(v.Name:lower(), "rope") or v:findFirstChild("PrimaryPart") or v:findFirstChild("Health") or v:findFirstChild("Torso") or v:findFirstChild("HitShell") then
| |
| 160 | local Part = nil | |
| 161 | for i,v in pairs(v:GetChildren()) do | |
| 162 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 163 | Part = v | |
| 164 | end | |
| 165 | end | |
| 166 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 167 | Part = v | |
| 168 | end | |
| 169 | if Part then | |
| 170 | local Distance = (Part.Position - myPos()).magnitude | |
| 171 | if Distance <= Aura_Range then | |
| 172 | orange(Part, 7) | |
| 173 | end | |
| 174 | end | |
| 175 | end | |
| 176 | end | |
| 177 | for i,v in pairs(workspace.Deployables:GetChildren()) do | |
| 178 | if string.find(v.Name:lower(), "wall") or string.find(v.Name:lower(), "gate") or string.find(v.Name:lower(), "raft") or string.find(v.Name:lower(), "boat") or string.find(v.Name:lower(), "hut") or string.find(v.Name:lower(), "Health") or v:findFirstChild("PrimaryPart") or v:findFirstChild("Torso") then
| |
| 179 | local Part = nil | |
| 180 | for i,v in pairs(v:GetChildren()) do | |
| 181 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 182 | Part = v | |
| 183 | end | |
| 184 | end | |
| 185 | if string.find(v.ClassName:lower(), "part") or v.ClassName == "Union" then | |
| 186 | Part = v | |
| 187 | end | |
| 188 | if Part then | |
| 189 | local Distance = (Part.Position - myPos()).magnitude | |
| 190 | if Distance <= Aura_Range then | |
| 191 | orange(Part, 7) | |
| 192 | end | |
| 193 | end | |
| 194 | end | |
| 195 | end | |
| 196 | end | |
| 197 | end) |