wait();
local parent = script.Parent;
local damage = 21;
local weld = sp:FindFirstChild('Weld');
if weld and weld.Part0 then
local hit = weld.Part0;
local sound = sp:FindFirstChild('Sound');
if sound then
sound:Stop();
end
local creator = parent:FindFirstChild('creator');
if creator.Value and creator.Value.Character and not (hit.Parent == creator.Value.Character) and not creator.TeamColor == game.Players.LocalPlayer.TeamColor and not hit.Name == 'Handle' and not hit.Name == 'Effect' then
local humanoid = hit.Parent:FindFirstChild('Humanoid');
local torso = hit.Parent:FindFirstChild('Torso');
if humanoid and torso and humanoid.Health > 0 then
for _, v in pairs(humanoid:GetChildren()) do
if v.Name == 'creator' then
v:Destroy();
end
end
creator:Clone().Parent = humanoid;
humanoid:TakeDamage(damage);
end
end
end |