|
| 23 Sep 2014 06:07 PM |
design a function that works exactly like :GetChildren()
without using :GetChildren()
-ForeverDev |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:07 PM |
idek if it's possible
-ForeverDev |
|
|
| Report Abuse |
|
|
| |
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 23 Sep 2014 06:09 PM |
| why would you make a new function that does the same thing as :GetChildren() when you can just use :GetChildren() |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:09 PM |
@max
i'd always use :GetChildren()
but it's fun to try to design something challenging
-ForeverDev |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:09 PM |
| :GetChildren() would be VERY useful irl for my "needs" |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 23 Sep 2014 06:12 PM |
| but if there's no purpose it's a waste of time, you'd be better off making something useful even if it's like script.music:play() |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:17 PM |
i make useless stuff all the time
it's how i get better at scripting
for example i learned how to apply metatables to a table of players, so i can manipulate all the players in the game by simply doing
players("kill") players("teleport", Vector3.new(0, 500, 0)) players("attachEvent", "died", function(player) print(player.Name .. " died!") end) --the last one would print 'player's name died!" if any player died
-ForeverDev |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 23 Sep 2014 06:19 PM |
Umm... not possible unless you have a script in every child
But I am working on this thing called RoQuery, and it will let you do things like
RQ(Workspace).find(_,"wedge",true).color("red") --> Colors every WedgePart in Workspace red, including wedges in descendants
Will be releasing within the next couple weeks
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:22 PM |
dang
u just inspired me
im gonna make something like that (yours will probably be better but whatever)
-ForeverDev |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 23 Sep 2014 06:46 PM |
Nu nu nu make something else please xp I want mine to be thee RoQuery, not a version of it.
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:51 PM |
ok fine
but i have a question
how can u use periods to call functions
when u were using ur RQ, you were doing this
RQ(Workspace)(PERIOD)find(blah blah)
how can you do that?
-ForeverDev |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:53 PM |
| make a script that uninfects my game when I free model. |
|
|
| Report Abuse |
|
|
| |
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 23 Sep 2014 06:53 PM |
picture something like this
function a()return{b=function()return{c=function()end}end}end
a().b().c()
The return tables, and the tables have functions in them
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 23 Sep 2014 06:54 PM |
@DX I already did, it's on 1Topcop and it's copylocked, and I can't uncopylock it blame john
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Sep 2014 06:55 PM |
im kinda confused
-ForeverDev |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 06:56 PM |
make a new one okay
I (not really me but I am blamed) for infecting the game constantly so I have to go back and rename everything in the workspace and delete all the infection scripts manually. |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 23 Sep 2014 06:57 PM |
k so here we have a function called 'a'
function a() return{ b = function() end } end
a returns a table inside the table a returns is a function, under the index of b
so imagine this:
x = a() -- x is now equal to the table a returns
x.b() -- b is a function inside the table 'x'
less confused? ;p
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 07:01 PM |
| fml I pretty much understand table, the letter a and the letter x |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 07:01 PM |
i get what you mean, but when you stack multiple functions ontop of each other (.a().b()) it errors
function x() return { a = function() print("hi") end, b = function() print("bye") end } end
local y = x() y.a().b()
calling y.a() works, but calling y.a().b() doesn't work because y.a() doesn't return the functions
-ForeverDev |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 07:02 PM |
dx, what viruses do u have
http://www.roblox.com/antivirus-item?id=165888421
i can edit those to work for ur specific virus
none of those r by me tho |
|
|
| Report Abuse |
|
|