|
| 22 May 2014 02:42 PM |
Okay,this script is in a tool with a value along with it,the value change's from X subtracting one until it = 1 at that point I want it to destroy the tool but I can't get mah script to work. If you could help dat be great.
script.Parent.Value.Changed:connect(function () if script.Parent.Value.Value == 1 then script.Parent:Destroy() end end) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 May 2014 02:44 PM |
Don't call it Value, change it's name to ValueV for me?
script.Parent.ValueV.Changed:connect(function(value) if value==1 then script.Parent:Destroy() end end)
|
|
|
| Report Abuse |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
|
| 22 May 2014 02:52 PM |
script.Parent.ValueV.Changed:connect(function(value) if script.Parent.ValueV.Value==1 then script.Parent:Destroy() end end) |
|
|
| Report Abuse |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 May 2014 03:23 PM |
"output?"
And you did change its name to ValueV? |
|
|
| Report Abuse |
|
|
| |
|