Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make scirpt activate ONLY ON BRICK touch?

Asked by 3 years ago

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

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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)
0
It's not always script.Parent. I think it'd be more effecient if you were to explain what the script.Parent represents ssgmalachi 52 — 3y
0
script.Parent is the script's parent CountOnMeBro 51 — 3y
Ad

Answer this question