Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Does Debris:AddItem use remove() or Destroy()?

Quick question, does Debris:AddItem use remove() or Destroy() on an object after the time has passed?

And side question if you know, if you call math.randomseed(tick()) will this randomise all math.random in every script if you do this in only one script? e.g I have 3 scripts and call math.random from each one, but use math.randomseed(tick()) from only one script? Thanks!

1 comment

0

From the last time I read it uses a Destroy if not read this https://developer.roblox.com/api-reference/function/Debris/AddItem

1 answer

✓ Accepted answer

since remove() is depracated and that roblox does not want people using depracated stuff i think its safe to assume Destroy()

and for your second question, no, math.randomseed() only changes the psudorandomizer's seed for every thread, so you have to run randomseed for all scripts

This discussion is preserved as it was. New answers, comments, and votes are closed.