CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
|
| 07 Jan 2013 06:17 PM |
This script isn't working. In the output it states its erroring around the '+' region It's mean't to check if wat hit it is 'Checkpoint1' and if so add 1 lap to it's value
function onTouched(hit) if hit.Name == "Checkpoint1" then script.Parent.Laps.Value + 1 end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Th30racle
|
  |
| Joined: 03 Nov 2012 |
| Total Posts: 214 |
|
|
| 07 Jan 2013 06:19 PM |
Lol'd This script has to be in a player. |
|
|
| Report Abuse |
|
|
CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
| |
|
Th30racle
|
  |
| Joined: 03 Nov 2012 |
| Total Posts: 214 |
|
| |
|
CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
|
| 09 Jan 2013 01:29 AM |
| Do you know how to script? Because I got it to work. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2013 01:46 AM |
He is correct it has to be in a player |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 09 Jan 2013 03:40 AM |
script.Parent.Laps.Value = script.Parent.Laps.Value + 1
>.> |
|
|
| Report Abuse |
|
|
CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
|
| 09 Jan 2013 01:33 PM |
| @monkey, yup, thats exactly what I changed it too and it works |
|
|
| Report Abuse |
|
|