Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I check for more than 1 hit or how would I go about adding another function? Confused.

Asked by
ElBamino 153
2 years ago
Edited 2 years ago

The code below is what I wrote and it does work for one tool. I'm trying to make like a team effort, where 3 players would equip a different unique gear. Doing this it will do what I want it do. I was wondering what I did wrong? I couldn't seem to find much about this online already. Also this is my first post. Thanks for the help in advance!

function ritual(hit)
    if (hit.Parent.Name == "Tool") and (hit.Parent.Name == "Tool2") and (hit.Parent.Name == "Tool3") then
    --(sample for what would happen next)
    end
end
script.Parent.Touched:Connect(ritual)

Answer this question