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?
✓ ANSWER ACCEPTED
how do i make a touched event for 2 parts at once?
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.
