honestly, no idea how to use string.sub
game.Players.PlayerAdded:connect(function(player)
if player.Name == "Inspectial" then
player.Chatted:connect(function(cmd)
if string.sub(1, 5) == "kill " then
for i,v in pairs(game.Players:GetChildren()) do
if v.Name == string.sub(1, 6) then
v.Character.Humanoid.Health = 0
end
end
end
end)
end
end) |