Version / Update: v1.0.0
- Download / Script Link
- local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local commandPrefix = "!"
local killCommand = "kill"
local target = nil
local function getPlayerByName(name)
name = name:lower()
for _, player in ipairs(Players:GetPlayers()) do
if player ~= Players.LocalPlayer and player.Name:lower():find(name) then
return player
end
end
end
local function onChatted(message, speaker)
if speaker == Players.LocalPlayer then
local args = message:split(" ")
if args[1] and args[1]:lower() == commandPrefix..killCommand then
if args[2] then
target = getPlayerByName(args[2])
if target then
print("Target set to:", target.Name)
else
print("Player not found!")
end
else
print("Usage: !kill [player]")
end
end
end
end
for _, player in ipairs(Players:GetPlayers()) do
if player:FindFirstChildOfClass("PlayerGui") then
local chatFrame = player.PlayerGui:FindFirstChild("Chat") or player.PlayerGui:FindFirstChild("ChatGui")
if chatFrame then
chatFrame.Chatted:Connect(function(msg)
onChatted(msg, player)
end)
end
end
end
Players.PlayerAdded:Connect(function(player)
player:WaitForChild("PlayerGui")
local chatFrame = player.PlayerGui:FindFirstChild("Chat") or player.PlayerGui:FindFirstChild("ChatGui")
if chatFrame then
chatFrame.Chatted:Connect(function(msg)
onChatted(msg, player)
end)
end
end)
RunService.RenderStepped:Connect(function()
if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
local localChar = Players.LocalPlayer.Character
if localChar and localChar:FindFirstChild("HumanoidRootPart") then
localChar.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
-- Attack simulation
local tool = localChar:FindFirstChildOfClass("Tool")
if tool then
tool:Activate()
end
end
end
end)
print("Kill bot loaded! Use !kill [player]")[ View More ]
local Players = game:GetService("Players")local RunService = game:GetService("RunService")local commandPrefix = "!"local killCommand = "kill"local target = nillocal function getPlayerByName(name) name = name:lower() for _, player in ipairs(Players:GetPlayers()) do if player ~= Players.LocalPlayer and player.Name:lower():find(name) then return player end endendlocal function onChatted(message, speaker) if speaker == Players.LocalPlayer then local args = message:split(" ") if args[1] and args[1]:lower() == commandPrefix..killCommand then if args[2] then target = getPlayerByName(args[2]) if target then print("Target set to:", target.Name) else print("Player not found!") end else print("Usage: !kill [player]") end end endendfor _, player in ipairs(Players:GetPlayers()) do if player:FindFirstChildOfClass("PlayerGui") then local chatFrame = player.PlayerGui:FindFirstChild("Chat") or player.PlayerGui:FindFirstChild("ChatGui") if chatFrame then chatFrame.Chatted:Connect(function(msg) onChatted(msg, player) end) end endendPlayers.PlayerAdded:Connect(function(player) player:WaitForChild("PlayerGui") local chatFrame = player.PlayerGui:FindFirstChild("Chat") or player.PlayerGui:FindFirstChild("ChatGui") if chatFrame then chatFrame.Chatted:Connect(function(msg) onChatted(msg, player) end) endend)RunService.RenderStepped:Connect(function() if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then local localChar = Players.LocalPlayer.Character if localChar and localChar:FindFirstChild("HumanoidRootPart") then localChar.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2) -- Attack simulation local tool = localChar:FindFirstChildOfClass("Tool") if tool then tool:Activate() end end endend)print("Kill bot loaded! Use !kill [player]")
- Works on mobile
- Yes