So I'm making an RPG game and I have a pickax that hurts only the humanoid called: "IronMine." But, I want it to also hurt "SteelMine." I've tried changing many things within the sword script of the tool... but I just can't seem to fix it. Help? Lol
This is the line in the sword script that I'm trying to fix:
local humanoid = hit.Parent:findFirstChild ("IronMine")
Post the SwordScript and the places you've tried editing.
Where you check for the humanoid name "IronMine" add the following
or humanoid.Name == "SteelMine" then
It should look like:
if humanoid.Name == "IronMine" or humanoid.Name == "SteelMine" then
There you go, if I helped please vote this answer and put this as the answer.