When a player touches a union with this script it does not seem to run
local Body = {"Right Leg","Left Leg","Torso","Right Arm","Left Arm"}
while wait(.0125) do
for i,v in pairs(Body) do
wait()
player.Character:WaitForChild(v).Touched:connect(function(touched)
if not activated then
activated = true
if touched ~= nil and touched.Name ~= "Base" and touched:IsA("Part") or
touched ~= nil and touched.Name ~= "Base" and touched.Name ~= "Part" and touched:IsA("Union") then
local CheckDone = CheckTouched(touched)
if game.Workspace:WaitForChild(player.Name).Humanoid.Health <= 0 then
script.Parent.DeathSound:Play()
end
repeat wait(.1) until CheckDone == true
end
activated = false
end
end)
end
end
When a player touches a union it does not seem to run.

1 comment
What is it touching? This script will only run if it tuches itself.