ADVERTISEMENTREMOVE ADS
Game icon

Loot [Kill Aura]

Script preview thumbnail
Script Preview

Description

Kill aura (all mobs near you 50 studs can be modified in script)


Binds:

Toggle Kill Aura PC: F

Mobile: There is a button on your screen

ADVERTISEMENTREMOVE ADS
71 Lines • 2.11 KiB
Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer
local killAuraEnabled = false
local screenGui = Instance.new("ScreenGui")
local frame = Instance.new("Frame")
local button = Instance.new("TextButton")
screenGui.Parent = player.PlayerGui
frame.Size = UDim2.new(0, 100, 0, 50)
frame.Position = UDim2.new(0, 10, 0, 10)
frame.BackgroundColor3 = Color3.new(0, 0, 0)
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui
button.Size = UDim2.new(1, 0, 1, 0)
button.BackgroundTransparency = 1
button.Text = "Aura: OFF"
button.TextColor3 = Color3.new(1, 1, 1)
button.Parent = frame
local function killAura()
local mobModel = Workspace.Live.MobModel
local playerPos = player.Character.HumanoidRootPart.Position
local nearestMob = nil
local nearestDistance = math.huge
for _, mob in pairs(mobModel:GetChildren()) do
if mob:FindFirstChild("Humanoid") and mob:FindFirstChild("HumanoidRootPart") then
local distance = (mob.HumanoidRootPart.Position - playerPos).Magnitude
if distance < 50 and distance < nearestDistance then
nearestDistance = distance
nearestMob = mob
end
end
end
if nearestMob then
local args = {{nearestMob.Name}}
ReplicatedStorage.Remote.Event.Combat.M1:FireServer(unpack(args))
end
end
local function toggleKillAura()
killAuraEnabled = not killAuraEnabled
button.Text = "Aura: " .. (killAuraEnabled and "ON" or "OFF")
if killAuraEnabled then
spawn(function()
while killAuraEnabled do
killAura()
wait(0.05)
end
end)
end
end
local function onKeyPress(key)
if key.KeyCode == Enum.KeyCode.F then
toggleKillAura()
end
end
button.MouseButton1Click:Connect(toggleKillAura)
UserInputService.InputBegan:Connect(onKeyPress)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS