Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
trecept 367 Moderation Voter
6 years ago

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!

0
From the last time I read it uses a Destroy if not read this https://developer.roblox.com/api-reference/function/Debris/AddItem User#24403 69 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

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

Ad

Answer this question