MADE BY CompileError
FEATURE:
- INSTANT KILL MOBS
- .
- roblox.com/games/8123652942/UPDATE-2-Legend-Piece
SCRIPT:
--[[
You have to hit the mob to get kill credit
I am to lazy to make an auto farm if you really want to do it urself
litterally just punch the mob you want to get the kill credit for and press the singlekey
it will kill the nearest mob
Script by: CompileError
Im not gonna bother doing anything else with this if you want to add it to a hub be my guest
If the devs give any shits about this game it would be patch pretty quick anyways so yeah
litterally just deletes the UpperTorso XD
No it does not work on players
I have not tried it on NPCs nor am I going to
Do what you want with this
you can also change the key bind as idk what keys are and are not used in game
Defult G
]]
local singlekey = "G" -- kills nearest mob
--some setup
local StarterGui = game:GetService("StarterGui")
local UserInputService = game:GetService('UserInputService')
local LocalPlayer = game:GetService('Players').LocalPlayer
local mobs = game:GetService("Workspace").Monster
local function getNearestMob()
local closest
local closestmagnitude
for _,mob in pairs(mobs:GetChildren()) do
local distance = LocalPlayer:DistanceFromCharacter(mob.PrimaryPart.Position)
if closest and distance < closestmagnitude then
closestmagnitude = distance
closest = mob
elseif not closest then
closestmagnitude = distance
closest = mob
end
end
return closest
end
StarterGui:SetCore("SendNotification", {
Title = "Legned Piece Kill mob";
Text = "Made by: CompileError"
})
--the script
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
local keycode = input.KeyCode
if input.UserInputType == Enum.UserInputType.Keyboard then
local keycode = input.KeyCode
if keycode == Enum.KeyCode[singlekey] then
local mob = getNearestMob()
mob.UpperTorso:Destroy() --insta kill I know so difficult the most complex script
StarterGui:SetCore("SendNotification", {
Title = "killed nearest mob";
Text = "/me dabs"
})
end
end
end
end)