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: .Changed problem

Previous Thread :: Next Thread 
sonicdiablo is not online. sonicdiablo
Joined: 05 Feb 2009
Total Posts: 1661
26 Jul 2012 02:10 AM
Here's a line of my script

Roots[i].Changed:connect(function() print(Roots[i]) ObjectEdited() end)



Roots is a table containing EVERYTHING in game.At the end of the script,Roots is

cleared to nil.My problem is,how would I print the name of the object that

changed?print(Roots[i]) part.It won't work because Roots is nil.
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
26 Jul 2012 03:08 AM
function onChanged(arg, name)
ObjectEdited()
end
Roots[i].Changed:connect(function(prop) local name = Roots[i] onChanged(prop, name) end)
Report Abuse
sonicdiablo is not online. sonicdiablo
Joined: 05 Feb 2009
Total Posts: 1661
26 Jul 2012 03:38 AM
Nope.Well,thanks for trying but I found how now :3.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
26 Jul 2012 03:41 AM
Is .Changed broken?

When I try workspace.Changed nothing happens pl0x

I'm trying to make a function to wait less than 0.03 seconds using Workspace.DistributedGameTime.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
26 Jul 2012 03:46 AM
You can use .Selected instead of .Changed. It's not the same but some sort of workaround.
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
26 Jul 2012 04:41 AM
@SN0X,

wait(1/100) ?
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
26 Jul 2012 04:47 AM
^nub
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
26 Jul 2012 04:53 AM
^nou
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