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

Is there a "Ignore list" On a touched event (part) ?

i have made a script that basically clones something to the player if "hit.Parent.Torso" exists, but it always hits an accesory (sometimes), so is there a ignore list for the touched event?

1 answer

✓ Accepted answer

You would just have to include an additional check. Something like this to keep looking for a model.

local function getModel(hit)
	while hit and not hit.ClassName == "Model" do
		hit = hit.Parent
	end
	return hit
end

There is an event which may even be better for you. The Humanoid includes a event called Touched.

Hope this helps.

1 comment

0

tysm yes

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