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 way to execute a script for when a brick touches another brick?

I know that there is a way to execute a script for when a player/Humanoid touches a brick, but is it possible to make a script execute a command for when a brick touches another brick?

Thanks!

1 answer

✓ Accepted answer

Touched functions do not specify for just players - they can work for a random part touching another part

script.Parent.Touched:connect(function(hit) -- You just need to define what "hit" the part
	if hit.Name == "RandomPart" then
		script.Parent.Transparency = 0.5
end)

This is just how I would suggest doing this.

1 comment

0

Thank you sooo much! This was just the thing that I was looking for! :) Thanks again! :)

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