A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
naknak
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
Supernapalm
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
m27frogy
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
slayer9365
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
myrco919
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
branefreez
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
ninga95
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
CloneTrooper787
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
raboy117
Simple, simple glitch! Vote_lcapSimple, simple glitch! Voting_barSimple, simple glitch! Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
Simple, simple glitch! EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
Simple, simple glitch! EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
Simple, simple glitch! EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
Simple, simple glitch! EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
Simple, simple glitch! EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
Simple, simple glitch! EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
Simple, simple glitch! EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
Simple, simple glitch! EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
Simple, simple glitch! EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
Simple, simple glitch! EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
Simple, simple glitch! EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
Simple, simple glitch! EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
Simple, simple glitch! EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
Simple, simple glitch! EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
Simple, simple glitch! EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
Simple, simple glitch! EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
Simple, simple glitch! EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
Simple, simple glitch! EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
Simple, simple glitch! EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
Simple, simple glitch! EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 Simple, simple glitch!

Go down 
5 posters
Go to page : 1, 2  Next
AuthorMessage
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 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?
Back to top Go down
http://hackthissite.org
Guest
Guest
avatar



Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 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()
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:50 am

beat me to it. :P


Last edited by naknak on January 30th 2011, 3:41 pm; edited 1 time in total (Reason for editing : Misspelling)
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 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
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:04 pm

no, your deleting the c object. as in if c = 1 then you deleted the first, etc.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:08 pm

so it means this

Code:
workspace.Model:GetChildren()[1]:Remove()

thats not what i want
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:12 pm

Then what do you want?
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:12 pm

Code:
workspace.Model:GetChildren()[1]:Remove()

isnt that an error? GetChildren() returns multiple results right?
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:15 pm

yes, but that says to return the first.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:17 pm

return the first what?
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 30th 2011, 6:22 pm

Fixed:[code]function a(b)
for c=1,#b do
b[c]:Remove()
end
end

a(workspace.Model:GetChildren())


Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 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*
Back to top Go down
http://hackthissite.org
Guest
Guest
avatar



Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 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
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyJanuary 31st 2011, 7:48 pm

I'm not good at explaining, but I know what I am atalking about
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 7th 2011, 7:21 pm

That was part of the virus wasn't it? :P
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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!
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 11th 2011, 6:55 pm

Nil viruses are the most annoying thing you can get
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 11th 2011, 9:14 pm

my virus parents it's self to nil by the way. :P
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 19th 2011, 5:27 pm

i do not try any unknown code
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 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...
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! EmptyFebruary 20th 2011, 9:37 pm

Now just what I inspired, that is the question.
Back to top Go down
Sponsored content





Simple, simple glitch! Empty
PostSubject: Re: Simple, simple glitch!   Simple, simple glitch! Empty

Back to top Go down
 
Simple, simple glitch!
Back to top 
Page 1 of 2Go to page : 1, 2  Next
 Similar topics
-
» Simple Button
» How to make a SIMPLE command script
» Simple Introduction To The Variadic Arguement Symbol.

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: