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: What is the best way to

Previous Thread :: Next Thread 
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
23 Nov 2013 11:37 PM
[ Content Deleted ]
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
23 Nov 2013 11:41 PM
Workspace.Value.Changed:connect(function(val)
-- do stuff
end)
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
23 Nov 2013 11:42 PM
nums = {2} -- original number
num = nums[1]

if num ~= nums[1]then
return nums[1] - num
end

Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
23 Nov 2013 11:47 PM
[ Content Deleted ]
Report Abuse
Jayskull900 is not online. Jayskull900
Joined: 26 Nov 2006
Total Posts: 590
23 Nov 2013 11:52 PM
Just use a .Changed... that's why they made that function....
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
23 Nov 2013 11:56 PM
i was showing a simple way, you have to have a orignal number variable.


so lets do this

orignum = 10 -- original number value

v = game.Workspace.NewVal -- the value that holds the number in integer or double

v.Value = orignum -- the value of v is now orig number

v.Value.Changed:connect(function() return orignum - v.Value end) -- the value of the number changed so we check by how much from the original number.
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
23 Nov 2013 11:58 PM
[ Content Deleted ]
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
23 Nov 2013 11:59 PM
lol no
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
24 Nov 2013 12:00 AM
actually it might idk what your trying to do, it would work, but idk if it will be convenient for you.
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
24 Nov 2013 12:02 AM
[ Content Deleted ]
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