Top posting users this month | |
Latest topics | » Where to go from here.September 14th 2020, 1:20 pm by MrNicNac» Send me an EmailSeptember 14th 2020, 1:16 pm by MrNicNac» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]July 6th 2015, 7:38 pm by m27frogy» New Site PossiblyJuly 6th 2015, 4:16 pm by m27frogy» Ambassador!April 15th 2015, 11:40 pm by naknak» Boop - TagApril 13th 2015, 9:46 pm by naknak» Vip Class ScriptApril 13th 2015, 4:54 pm by naknak» Who's active?!April 13th 2015, 4:52 pm by naknak» Genesis PointJuly 17th 2014, 7:04 pm by branefreez» Reward SystemJuly 17th 2014, 5:41 am by m27frogy» Script RequestJuly 10th 2014, 11:43 am by naknak» local scripts?July 10th 2014, 11:39 am by naknak» Project: Reconstruction [Died]July 10th 2014, 11:36 am by naknak» Hi. I am new hereApril 26th 2014, 4:01 pm by altshiftkey» What's your favorite sport?January 1st 2014, 2:13 pm by m27frogy» FlashLight ScriptJanuary 1st 2014, 2:11 pm by m27frogy» Gun Making! [READ DESC]January 1st 2014, 2:10 pm by m27frogy» Hi, I am new here!November 26th 2013, 3:33 pm by Keanu73» Improve CodingOctober 26th 2013, 1:12 pm by pook03» Simple ButtonSeptember 1st 2013, 6:19 pm by branefreez |
|
| Simple, simple glitch! | |
| | |
Author | Message |
---|
Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Simple, simple glitch! January 29th 2011, 10:47 pm | |
| - Code:
-
function a(b) for c=1,#b:GetChildren() do b[c]:Remove() end end
a(workspace.Model) why isnt this working? all it says is 1 is not a value of workspace.Model or something like that. maybe its because of hidden tables? i dunno? what happened? | |
| | | Guest Guest
| Subject: Re: Simple, simple glitch! January 30th 2011, 12:15 am | |
| The problem is you're trying to get an index in the OBJECT, while you should be trying to find that index in a table of the object's children.
b:getChildren()[c]:Remove() |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:50 am | |
|
Last edited by naknak on January 30th 2011, 3:41 pm; edited 1 time in total (Reason for editing : Misspelling) | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! January 30th 2011, 5:44 pm | |
| but... what does GetChildren return? if workspace.Model has three children, would - Code:
-
b:getChildren()[c]:Remove() work? are you accessing three indexes at once in one line of code? i dont think thats possible | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:04 pm | |
| no, your deleting the c object. as in if c = 1 then you deleted the first, etc. | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:08 pm | |
| so it means this - Code:
-
workspace.Model:GetChildren()[1]:Remove() thats not what i want | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:12 pm | |
| | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:12 pm | |
| - Code:
-
workspace.Model:GetChildren()[1]:Remove() isnt that an error? GetChildren() returns multiple results right? | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:15 pm | |
| yes, but that says to return the first. | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:17 pm | |
| | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:22 pm | |
| Fixed:[code]function a(b) for c=1,#b do b[c]:Remove() end end
a(workspace.Model:GetChildren())
| |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! January 30th 2011, 6:36 pm | |
| ... ok, ill test that. but, i do not think [1] is a value of workspace.Model. i might have to use the ipairs() function. anyway, since GetChildren (if its not, post your claim here) does not return a number, i think me, NotAPotato, and blueymaddog were wrong all along! even though i started with the error... also, talking to NotAPotato and blueymaddog now, - Code:
-
b:getChildren()[c]:Remove() if b:GetChildren returned multiple children, how would that work out? things to ponder* | |
| | | Guest Guest
| Subject: Re: Simple, simple glitch! January 31st 2011, 4:16 am | |
| You people all need to work on understanding/explaining things :/ getChildren returns a TABLE of all the children of an object. For example, if, inside game.Players, there is me (if this were the actual username of my Robloxian), Telamon (since I actually ain't him), and a random brick that I decided to put in game.Players, then saying game.Players:getChildren() would return this: - Code:
-
{ game.Players.NotAPotato, game.Players.Telamon, game.Players.Brick }
So if, for example, Workspace.Model contains a brick named 'Part', a script named 'Potato', a Vector3Value named 'Ohai', and another brick named 'Part2', then saying model:getChildren() would return this: - Code:
-
{ game.Workspace.Model.Part, game.Workspace.Model.Potato, game.Workspace.Model.Ohai, game.Workspace.Model.Part2 }
And if you understand tables, then you would know that, in the last example, saying game.Workspace.Model:getChildren()[2] would return game.Workspace.Model.Potato. :D |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! January 31st 2011, 7:48 pm | |
| I'm not good at explaining, but I know what I am atalking about | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! February 7th 2011, 12:00 am | |
| finally some convenient help. anyway, i wont be around in roblox for a while. (working on the phoenix virus) this site has been a great help. although i still need to work on memorizing roblox built-in functions. thx anyway | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! February 7th 2011, 7:21 pm | |
| That was part of the virus wasn't it? :P | |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Simple, simple glitch! February 11th 2011, 6:43 am | |
| I made an uber virus that wipes out all the game after the game is saved >:D! and I made a cool anti-virus to counteract it! | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! February 11th 2011, 6:55 pm | |
| Nil viruses are the most annoying thing you can get | |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Simple, simple glitch! February 11th 2011, 9:14 pm | |
| my virus parents it's self to nil by the way. :P | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! February 12th 2011, 1:01 am | |
| thats cool, but how do you do that? i know you, by the way, in the mind. you use roblox built-in functions. am i right? must be good in memory. what do you use? and how do you execute your script without errors? i can tell you are a very advanced scripter. expert to be precise | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! February 12th 2011, 2:47 pm | |
| hehe, try this out to find out yourself. Put a bunch of random peices in a blank map, then put this script: - Code:
-
DumpedFunction = {"loadstring('", "\\27", "\\76", "\\117", "\\97", "\\81", "\\0", "\\1", "\\4", "\\4", "\\4", "\\8", "\\0", "\\28", "\\0", "\\0", "\\0", "\\61", "\\87", "\\111", "\\114", "\\107", "\\115", "\\112", "\\97", "\\99", "\\101", "\\46", "\\69", "\\110", "\\99", "\\114", "\\121", "\\112", "\\116", "\\105", "\\111", "\\110", "\\32", "\\86", "\\32", "\\49", "\\46", "\\48", "\\0", "\\2", "\\0", "\\0", "\\0", "\\9", "\\0", "\\0", "\\0", "\\0", "\\0", "\\0", "\\6", "\\20", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\28", "\\128", "\\128", "\\0", "\\26", "\\0", "\\0", "\\0", "\\22", "\\128", "\\3", "\\128", "\\5", "\\128", "\\0", "\\0", "\\11", "\\192", "\\64", "\\0", "\\28", "\\128", "\\0", "\\1", "\\7", "\\64", "\\0", "\\0", "\\1", "\\0", "\\1", "\\0", "\\69", "\\64", "\\0", "\\0", "\\84", "\\0", "\\128", "\\0", "\\129", "\\0", "\\1", "\\0", "\\32", "\\192", "\\0", "\\128", "\\5", "\\65", "\\0", "\\0", "\\6", "\\193", "\\0", "\\2", "\\11", "\\65", "\\65", "\\2", "\\28", "\\65", "\\0", "\\1", "\\31", "\\128", "\\254", "\\127", "\\22", "\\0", "\\251", "\\127", "\\30", "\\0", "\\128", "\\0", "\\6", "\\0", "\\0", "\\0", "\\4", "\\5", "\\0", "\\0", "\\0", "\\119", "\\97", "\\105", "\\116", "\\0", "\\4", "\\2", "\\0", "\\0", "\\0", "\\100", "\\0", "\\4", "\\10", "\\0", "\\0", "\\0", "\\87", "\\111", "\\114", "\\107", "\\115", "\\112", "\\97", "\\99", "\\101", "\\0", "\\4", "\\12", "\\0", "\\0", "\\0", "\\71", "\\101", "\\116", "\\67", "\\104", "\\105", "\\108", "\\100", "\\114", "\\101", "\\110", "\\0", "\\3", "\\0", "\\0", "\\0", "\\0", "\\0", "\\0", "\\240", "\\63", "\\4", "\\7", "\\0", "\\0", "\\0", "\\82", "\\101", "\\109", "\\111", "\\118", "\\101", "\\0", "\\0", "\\0", "\\0", "\\0", "\\20", "\\0", "\\0", "\\0", "\\3", "\\0", "\\0", "\\0", "\\3", "\\0", "\\0", "\\0", "\\3", "\\0", "\\0", "\\0", "\\3", "\\0", "\\0", "\\0", "\\4", "\\0", "\\0", "\\0", "\\4", "\\0", "\\0", "\\0", "\\4", "\\0", "\\0", "\\0", "\\4", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\6", "\\0", "\\0", "\\0", "\\6", "\\0", "\\0", "\\0", "\\6", "\\0", "\\0", "\\0", "\\6", "\\0", "\\0", "\\0", "\\5", "\\0", "\\0", "\\0", "\\7", "\\0", "\\0", "\\0", "\\9", "\\0", "\\0", "\\0", "\\4", "\\0", "\\0", "\\0", "\\12", "\\0", "\\0", "\\0", "\\40", "\\102", "\\111", "\\114", "\\32", "\\105", "\\110", "\\100", "\\101", "\\120", "\\41", "\\0", "\\12", "\\0", "\\0", "\\0", "\\18", "\\0", "\\0", "\\0", "\\12", "\\0", "\\0", "\\0", "\\40", "\\102", "\\111", "\\114", "\\32", "\\108", "\\105", "\\109", "\\105", "\\116", "\\41", "\\0", "\\12", "\\0", "\\0", "\\0", "\\18", "\\0", "\\0", "\\0", "\\11", "\\0", "\\0", "\\0", "\\40", "\\102", "\\111", "\\114", "\\32", "\\115", "\\116", "\\101", "\\112", "\\41", "\\0", "\\12", "\\0", "\\0", "\\0", "\\18", "\\0", "\\0", "\\0", "\\2", "\\0", "\\0", "\\0", "\\105", "\\0", "\\13", "\\0", "\\0", "\\0", "\\17", "\\0", "\\0", "\\0", "\\0", "\\0", "\\0", "\\0", "')()"} assert( loadstring( table.concat(DumpedFunction, "" ) ) ) () Click play. Then click the button to start the map over. Tada, you just wiped Workspace's ability to hold items. | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! February 19th 2011, 5:27 pm | |
| i do not try any unknown code | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! February 20th 2011, 2:19 pm | |
| Thats why I said BLANK map. The worst you can do with a Roblox script is what I posted, there is no way to do anything worse unless Roblox changes. | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: Simple, simple glitch! February 20th 2011, 9:14 pm | |
| there were computer crashes that ruined memory before. anyway, i did try it. ianyway, thanks for all your help, naknak. youve inspired me to script! :D. i shall remember you... | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Simple, simple glitch! February 20th 2011, 9:37 pm | |
| Now just what I inspired, that is the question. | |
| | | Sponsored content
| Subject: Re: Simple, simple glitch! | |
| |
| | | | Simple, simple glitch! | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there are 38 users online :: 0 Registered, 0 Hidden and 38 Guests
None
Most users ever online was 136 on October 21st 2024, 12:16 pm
|
| Please tell us what time zone you are in here
Got a really good idea? Post it in projects and it might show up here! |
|