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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
14 Jul 2011 04:48 PM
Can you add something to a table for a certain period of time? Like Debris, you make a part...

p = Instance.new("Part")
Debris:[Forgot this function](p,10)

So, can you do that with a table? Or anything besides debris?
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
14 Jul 2011 04:48 PM
[ Content Deleted ]
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
14 Jul 2011 04:56 PM
Table = {}

p = Instance.new("Part")
Table[p] = true
wait(10)
game:GetService("Debris"):AddItem(p)
Table[p] = nil
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
14 Jul 2011 04:57 PM
[ Content Deleted ]
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
14 Jul 2011 04:57 PM
Metatables.


T = {}
X = {
__newindex = function(t,i,v)
wait(TIME)
t[v] = nil
end}
setmetatable(T,X)
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
14 Jul 2011 04:58 PM
Hey, it works.

The poster of this thread just needs to figure out what he is really trying to do. I doubt you need coroutines to solve a simple problem like this.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
14 Jul 2011 04:58 PM
Above script is messed up, but you get the purpose.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
14 Jul 2011 04:59 PM
[ Content Deleted ]
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
14 Jul 2011 05:00 PM
I'd use metatables.
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
14 Jul 2011 05:00 PM
I'd use common sense.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
14 Jul 2011 05:16 PM
Metatables are common sense.
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
14 Jul 2011 05:17 PM
If it helps, i need to know this because im making an RPG, with status effects. I need them to be there inflicting whatever for a certain time, then get removed. Or i could mess up the game and have everyone just use Remedies.
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