|
| 03 Feb 2016 08:07 PM |
This doesn't work, its something that is clearnly named 'Containers' in the workspace, but it still doesn't function:
function onTouched(part)
c = game.Workspace.Containers
c:Destroy()
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
yurhomi10
|
  |
| Joined: 10 Dec 2008 |
| Total Posts: 13886 |
|
|
| 03 Feb 2016 08:12 PM |
not sure, maybe the part isn't spelled right? also you should try anonymous functions it makes you code a little more complex like this,
script.Parent.Touched:connect(function(part) c = game.Workspace.Containers c:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2016 08:14 PM |
| I dont know how, I dont know why, but that worked. |
|
|
| Report Abuse |
|
|
yurhomi10
|
  |
| Joined: 10 Dec 2008 |
| Total Posts: 13886 |
|
| |
|
cur3nton
|
  |
| Joined: 11 Dec 2015 |
| Total Posts: 33 |
|
|
| 03 Feb 2016 08:18 PM |
lmao was just about to type that ^
don't worry, it takes me days to find simple mistakes lel.
~lool~ |
|
|
| Report Abuse |
|
|