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 » Scripting Helpers
Home Search
 

Why is this not working?

Previous Thread :: Next Thread 
jared2valdez4 is not online. jared2valdez4
Joined: 10 Sep 2012
Total Posts: 1514
11 Feb 2013 06:16 PM
local char = script.Parent.Parent -- Parent to the chracter

for _,v in pairs(char:GetChildren()) do
if v:IsA("Hat) then
v:Destroy()
end
end

The output prints nothing.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
11 Feb 2013 06:18 PM
Not a complete string at your if statement.
Report Abuse
jared2valdez4 is not online. jared2valdez4
Joined: 10 Sep 2012
Total Posts: 1514
11 Feb 2013 06:21 PM
local char = script.Parent.Parent -- Parent to the chracter

for _,v in pairs(char:GetChildren()) do
if v:IsA("Hat") then
v:Destroy()
end
end

Its still not working
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
11 Feb 2013 06:24 PM
That's my script :0

anyways output?
Report Abuse
jared2valdez4 is not online. jared2valdez4
Joined: 10 Sep 2012
Total Posts: 1514
11 Feb 2013 06:24 PM
It is not printing nothing
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
11 Feb 2013 06:25 PM
i don't want to help someone who steals places
Report Abuse
wolverine12 is not online. wolverine12
Joined: 20 Aug 2008
Total Posts: 1100
11 Feb 2013 06:27 PM
@above agreed
Report Abuse
jared2valdez4 is not online. jared2valdez4
Joined: 10 Sep 2012
Total Posts: 1514
11 Feb 2013 06:27 PM
Then don't even reply to the thread? Simple as that..
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
11 Feb 2013 06:27 PM
this works fine in the command bar:

char = Workspace.Player1
for _,v in pairs(char:GetChildren()) do
if v:IsA("Hat") then
v:Destroy()
end
end
Report Abuse
Clant is not online. Clant
Joined: 20 Mar 2009
Total Posts: 193
11 Feb 2013 06:27 PM
@pokemon771
Then why comment on the thread? Are you stupid or something?
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
11 Feb 2013 06:28 PM
"Then don't even reply to the thread? Simple as that.."

i don't see how you find stealing games good.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
11 Feb 2013 06:29 PM
That script would work fine, your just not implementing it correctly, though that may be since you have yet to make anything youself.
Report Abuse
Clant is not online. Clant
Joined: 20 Mar 2009
Total Posts: 193
11 Feb 2013 06:29 PM
@pokemon771
I don't steal games. I take games that I find uncopylocked and use them.

Stealing is taking someones work without there perversion.
And it only effects me not you the only way it would effect you is if you are jealous or envy that I am making money off it.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
11 Feb 2013 06:32 PM
"I don't steal games. I take games that I find uncopylocked and use them.

Stealing is taking someones work without there perversion.
And it only effects me not you the only way it would effect you is if you are jealous or envy that I am making money off it."

i wasn't talking to you smart one.
Report Abuse
Clant is not online. Clant
Joined: 20 Mar 2009
Total Posts: 193
11 Feb 2013 06:33 PM
Well I am saying it twoards jared
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
11 Feb 2013 06:33 PM
Tell that to daxter and his paintball game. Also it is permission* though you do pervert their work so good job on using the word.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
11 Feb 2013 06:33 PM
Well, I agree with poke and the people who said don't post. I hate jared and people who don't give credit nor even try to make their own place. Just like you, Clant.

Got a problem with me? Take it up with my butt because it's the only one that gives a crap.
Report Abuse
KickButtey is not online. KickButtey
Joined: 20 Nov 2011
Total Posts: 443
11 Feb 2013 06:35 PM
omg you guys need to get a life -_- its just a game if you dont like what he does then IGNORE him.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
11 Feb 2013 06:36 PM
Kick funny thing, uh, well... If you're not dead you have a life, halfwit.

Got a problem with me? Take it up with my butt because it's the only one that gives a crap.
Report Abuse
KickButtey is not online. KickButtey
Joined: 20 Nov 2011
Total Posts: 443
11 Feb 2013 06:39 PM
Don't like jared copying? GET A LIFE. Foreal -_-
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
11 Feb 2013 06:40 PM
Are you stupid or just can't read?

Got a problem with me? Take it up with my butt because it's the only one that gives a crap.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
11 Feb 2013 06:40 PM
Odd that you would say the buttey when your also trolling because of jared.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
11 Feb 2013 06:54 PM
Same with you my friend. I've seen the last thread, XD.

Got a problem with me? Take it up with my butt because it's the only one that gives a crap.
Report Abuse
spookyBen is not online. spookyBen
Joined: 13 Dec 2009
Total Posts: 6581
11 Feb 2013 08:14 PM
I'm assuming it might just be that either the error was a logic mistake or something like that, or you just think theres an error.

If there is a error, I'm assuming its with how you defined char, meaning, it wasn't defined correctly, or, not detailed enough. My other guess is that even though its purpose is to get rid of characters hats, it might just be Workspace, not absolutely sure though.

Hope this helped. :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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