|
| 08 Sep 2012 08:30 AM |
It's the last line, where you bind the click function and click detector triggers to your function, and I forget how to write it. I tried it four different ways, none of which worked. I do have a clickdetector in the object, I didn't forget that.
Here are the 4 different ways I tried it, each with their respective outputs:
script.Parent.ClickDetector.Clicked:connect(gamestartup) OUTPUT:Clicked is not a valid member of ClickDetector
script.Parent.ClickDetector.Click:connect(gamestartup) OUTPUT:Click is not a valid member of ClickDetector
script.Parent.Clicked.ClickDetector:connect(gamestartup) OUTPUT:Clicked is not a valid member of Part
script.Parent.Click.ClickDetector:connect(gamestartup) OUTPUT:Click is not a valid member of Part
(gamestartup is the name of my function)
-MrIntuitive |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 08 Sep 2012 08:32 AM |
Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked) print("Part was clicked by: " .. playerWhoClicked.Name) end
Velibor
|
|
|
| Report Abuse |
|
|
|
| 08 Sep 2012 08:34 AM |
MOUSECLICK
That was it!
Thank you for your help
It worked -MrIntuitive |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 08 Sep 2012 08:38 AM |
No problem ;-)
Thread status : Closed
Velibor
|
|
|
| Report Abuse |
|
|