|
| 15 Jul 2015 09:04 PM |
Your Daily Script Of The Day (Made By QuantumScripter)
while true do
wait(0.3)
p=Instance.new("Part",game.Workspace) p.Size=Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)) p.Position=Vector3.new((math.random(-100,100)),100,(math.random(-100,100))) p.Color=Color3.new(math.random(),math.random(),math.random()) game.Debris:AddItem(p,5)
end |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2015 09:06 PM |
| Don't use debris as it (should) be labeled deprecated because it :Remove()'s objects rather than :Destroy()'s them. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jul 2015 09:09 PM |
| Can someone tell me a cloud script? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 15 Jul 2015 09:11 PM |
| Why in the world would I want this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2015 06:37 PM |
| so cody what ur saying is we should use spawn to destroy it? |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 06:40 PM |
| You can't use destroy() in this script because it would interfere with the other code because there is already a wait and loop |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Jul 2015 06:41 PM |
local game=game
game.Debris={AddItem=function(obj,length) spawn(function()wait(length)obj:Destroy()end)}
game.Debris:AddItem(Instance.new("Part",game.Workspace),5) |
|
|
| Report Abuse |
|
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 18 Jul 2015 06:49 PM |
Mine doesn't work lol
Maybe:
local g=game local game={Debris={AddItem=function(obj,length) spawn(function()wait(length)obj:Destroy()end) end}} local mt=setmetatable(game,{__index=function(self,value) if game[value] then return game[value] else return g[value] end})
game.Debris:AddItem(Instance.new("Part",game.Workspace),5) |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2015 02:47 PM |
| Tynezz why would you create a variable for game??? That's completely pointless. |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
|
| 19 Jul 2015 02:56 PM |
@cody123454321 What are you talking about? Debris :Destroys the instance. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2015 03:05 PM |
local game = setmetatable({Debris = { AddItem = function(self,Obj,Time) delay(Time,function() Obj:Destroy() end) end}},{ __index = function(self,k) return game[k] end; }) |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2015 03:07 PM |
^
It's already been established that debris does, in fact, destroy instances and not remove them, so why are you posting that? |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2015 03:42 PM |
| Why does it matter if i destroy it, why do i have to "remove it." It's the same, what's the big deal? |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 19 Jul 2015 08:02 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=82434447 |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2015 12:23 PM |
@nQ http://wiki.roblox.com/index.php?title=Debris#Notes Look at the notes tard |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2015 10:08 PM |
| How do i redo this script using Destroy? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 23 Jul 2015 10:19 PM |
@Everyone All of you stfu.
@OP this is the most worthless script I have ever seen. Do not do this again.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2015 10:22 PM |
@Cody "Don't use debris as it (should) be labeled deprecated because it :Remove()'s objects rather than :Destroy()'s them."
Recently it was changed so that Debris does in fact :Destroy() rather than :Remove().
The wiki hasn't caught up. :) |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 04:21 PM |
I'm sorry...i was just trying to be kind with my new knowledge of scripting ;*(
|
|
|
| Report Abuse |
|
|
Iterum
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 1982 |
|
|
| 11 Aug 2015 04:22 PM |
"Recently it was changed so that Debris does in fact :Destroy() rather than :Remove().
The wiki hasn't caught up. :)"
someone should change it than
-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 04:22 PM |
| TimeTicks you are a mean bully, i hope they ban you |
|
|
| Report Abuse |
|
|