Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i make a touched event for 2 parts at once?

lets say i want a zombie to attack, i can only make the right arm do damage but not the left, how do i enable it so that both of the arms can do damage?

1 answer

✓ Accepted answer

Just add the same script you are using for the left arm to the right arm.... They will run at the same time...

Zombie = workspace.Zombie
Zombie.RIghtArm.Touched:connect(function(Hit)
if Hit.Parent:findFirstChild("Humanoid") then
Hit.Parent.Humanoid.Health = Hit.Parent.Humanoid.Health - 50
end
end)
Zombie.LeftArm.Touched:connect(function(Hit)
if Hit.Parent:findFirstChild("Humanoid") then
Hit.Parent.Humanoid.Health = Hit.Parent.Humanoid.Health - 50
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.