generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can you help me fix this?

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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 is not online. 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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
22 May 2014 02:49 PM
Nope,didn't work
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 May 2014 02:51 PM
output?
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
22 May 2014 03:13 PM
Still doesn't work ;(
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 May 2014 03:14 PM
.... wow
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
22 May 2014 03:19 PM
what?
Report Abuse
smiley599 is not online. 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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
22 May 2014 03:26 PM
Never mind I fixed it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image