laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 29 Nov 2013 08:43 PM |
i can't get Path.Part.Touched:connect(functionName()) to work.. is there a different way to register touch events for a script.. PS.. i was trying this in Offline mode
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2013 08:48 PM |
did you use script.Parent.Touched:connect(function name) at the end? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Nov 2013 08:48 PM |
| it's functionName, not functionName() |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 29 Nov 2013 08:57 PM |
| well that too but it doesn't want to work :( |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2013 09:02 PM |
| Can you post your script? That would make it allot easier to find your problem... |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2013 09:02 PM |
Maybe you should delete the extra ) at the end like this:
Path.Part.Touched:connect(functionName()
|
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 29 Nov 2013 09:05 PM |
i'm using a simple thouch event detect;
print("running") function hit(v) print("hit") print(v:GetfFullName()) end
script.Parent.Touched:connect(hit)
|
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 29 Nov 2013 09:07 PM |
script.Parent.Touched:connect(function(hit) --anonymous function print("running") if hit then print(hit.Name) end end) |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2013 09:09 PM |
print("Running") script.Parent.Touched:connect(function(hit) if hit then print(hit.Name) end end) |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
| |
|