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

How can I make it where if a part touches another it triggers something?

1 answer

You can use the .Touched event to fire something whenever a part is touched!

local part = script.Parent

part.Touched:Connect(function(hit)--//If you want to detect something, add the hit parameter. You can also use obj
print(hit.Parent.Name) --//Prints the hit parents name!
--//The rest of your code here.
end)

If you want more information on it, I suggest you look at it on the dev forum

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