|
| 12 Jul 2016 04:56 PM |
I want to make a system that if a model/union called "Suitcase" touches a brick, it gets deleted, but I don't know how to detect if it touches a brick,
In case that isn't specific or something, this is kinda what I want but not in correct scripting stuff
if script.Parent touched and touched.name == "Suitcase" then touched:Remove() end
or something like that, can anyone please help me?
|
|
|
| Report Abuse |
|
|
| 12 Jul 2016 05:48 PM |
Okay, so this would go in the brick. So Suitcase is a model and not a tool?
script.Parent.Touched:connect(function(who) if who.Name == "Suitcase" then who:remove() end end) |
|
|
| Report Abuse |
|