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 » Scripters
Home Search
 

Re: Free Script Of The Day!

Previous Thread :: Next Thread 
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
15 Jul 2015 09:07 PM
What is the difference?
Report Abuse
xXDesiredMinerXx is not online. xXDesiredMinerXx
Joined: 07 Sep 2013
Total Posts: 3
15 Jul 2015 09:09 PM
Can someone tell me a cloud script?
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
15 Jul 2015 09:11 PM
Why in the world would I want this?
Report Abuse
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
18 Jul 2015 06:35 PM
Because you need this.
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
18 Jul 2015 06:37 PM
so cody what ur saying is we should use spawn to destroy it?
Report Abuse
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
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 is not online. 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
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
18 Jul 2015 06:41 PM
^ script of the day
Report Abuse
Tynezz is not online. 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
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
19 Jul 2015 02:47 PM
Tynezz why would you create a variable for game??? That's completely pointless.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
19 Jul 2015 02:51 PM
He's wrapping it
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
19 Jul 2015 02:56 PM
@cody123454321
What are you talking about? Debris :Destroys the instance.
Report Abuse
supmanwar2 is not online. supmanwar2
Joined: 02 Aug 2012
Total Posts: 67
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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
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 is not online. 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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
20 Jul 2015 12:23 PM
@nQ
http://wiki.roblox.com/index.php?title=Debris#Notes
Look at the notes tard
Report Abuse
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
23 Jul 2015 10:08 PM
How do i redo this script using Destroy?
Report Abuse
TimeTicks is not online. 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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
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 is not online. 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
QuantumScripter is not online. QuantumScripter
Joined: 12 Mar 2009
Total Posts: 263
11 Aug 2015 04:22 PM
TimeTicks you are a mean bully, i hope they ban you
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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