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
 

Short and basic script [HELP]

Previous Thread :: Next Thread 
Soybeen is online. 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 is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Jun 2014 07:09 PM
*It's my first time using .Changed
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
14 Jun 2014 07:10 PM
Dont see anything wrong...
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Jun 2014 07:13 PM
Neither do I.
Report Abuse
PerpetualMovement is not online. PerpetualMovement
Joined: 04 Dec 2012
Total Posts: 1001
14 Jun 2014 07:16 PM
Is script.Parent an IntValue or something like it?
Report Abuse
EgoMoose is not online. 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 is online. 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
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