local players = game:GetService("Players")
while wait() do
for i,v in players:GetChildren() do
local character = game.Workspace:WaitForChild(v.Name)
script.Parent.Humanoid:MoveTo(character.PrimaryPart.Position)
script.Parent.Humanoid.MoveToFinished:Wait()
script.Parent.Torso.Touched:Connect(function(touch)
if touch.Parent == character then
local char = touch.Parent
char:WaitForChild("Humanoid").Health = 0
local plr = players:GetPlayerFromCharacter(char)
local humanoidDescription = char:WaitForChild("Humanoid"):WaitForChild("HumanoidDescription")
script.Parent.Humanoid:ApplyDescription(humanoidDescription)
end
end)
end
end
-- if it somehow isn't --