tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 20 May 2014 10:26 PM |
TimesClicked = game.Workspace.Clicks.Value
script.Parent.ClickDetector.MouseClick:connect(function() TimesClicked + 1 end)
the Clicks is a number value |
|
|
| Report Abuse |
|
|
Jdad
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 5143 |
|
|
| 20 May 2014 10:28 PM |
You cant set a property as a variable
TimesClicked = game.Workspace.Clicks
script.Parent.ClickDetector.MouseClick:connect(function() TimesClicked.Value = TImesClicked.Value + 1 end) |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
| |
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 20 May 2014 10:30 PM |
| it says theres a error at script.Parent.ClickDetector.MouseClick:connect(function() |
|
|
| Report Abuse |
|
|
Zero2308
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 131 |
|
|
| 20 May 2014 10:35 PM |
| did u putted a ClickDetector? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 20 May 2014 10:38 PM |
Just post the script please
|
|
|
| Report Abuse |
|
|
Zero2308
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 131 |
|
|
| 20 May 2014 10:39 PM |
Correct Line 4 : TimesClicked.Value = TimesClicked.Value + 1
It was "TImesClicked" |
|
|
| Report Abuse |
|
|
Zero2308
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 131 |
|
|
| 20 May 2014 10:41 PM |
Use IntValue on "Clicks" Put the ClickDetector on the Part Put this script on the Part:
TimesClicked = game.Workspace.Clicks
script.Parent.ClickDetector.MouseClick:connect(function() TimesClicked.Value = TimesClicked.Value + 1 end) |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 21 May 2014 08:29 AM |
| the script is in a click detector |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 21 May 2014 08:35 AM |
Part > ClickDetector > Script
Add a part |
|
|
| Report Abuse |
|
|
Zero2308
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 131 |
|
|
| 23 May 2014 11:33 PM |
if the script is in the Click Detector
TimesClicked = game.Workspace.Clicks
script.Parent.MouseClick:connect(function() TimesClicked.Value = TimesClicked.Value + 1 end) |
|
|
| Report Abuse |
|
|