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

How do i make scirpt activate ONLY ON BRICK touch?

hello i want to make a script activation only on brick but idk how to do it, any help?

1 answer

This Should Work

-- put this script in the part --
script.Parent.Touched:Connect(function() -- script.parent is the block where the script is in
	print("This part was touched and now running") -- delete this if you want
	               --- Code Here
end)

2 comments

0

It's not always script.Parent. I think it'd be more effecient if you were to explain what the script.Parent represents

0

script.Parent is the script's parent

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