Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 14 Jun 2014 07:09 PM |
So, what is preventing this from working? It's my first try and using .Changed
script.Parent.Changed:connect(function(Val) if script.Parent.Value == 21 then print("Done") else end end) |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 14 Jun 2014 07:09 PM |
| *It's my first time using .Changed |
|
|
| Report Abuse |
|
|
alij12
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1204 |
|
|
| 14 Jun 2014 07:10 PM |
| Dont see anything wrong... |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
|
| 14 Jun 2014 07:16 PM |
| Is script.Parent an IntValue or something like it? |
|
|
| Report Abuse |
|
|
EgoMoose
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 2896 |
|
|
| 14 Jun 2014 07:16 PM |
Just tried this and it worked perfectly
script.Parent.Changed:connect(function(Val) if Val == 21 then print("Done") end end) |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 14 Jun 2014 07:18 PM |
Nevermind, I've figured out the problem, and it wasn't in this portion of code. I assumed I had done something wrong with .Changed.
Thanks anyways. |
|
|
| Report Abuse |
|
|