menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Help with this tiny script?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Help with this tiny script?
keepr
Join Date: 2009-11-05
Post Count: 1573
#59888245
Tuesday, December 20, 2011 10:11 PM GMT
game.Workspace.Robxi16["Hats"]:Remove() Yeah I know its not complicated but i just cant figure out how to fix this.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
swimguy777
Join Date: 2009-05-30
Post Count: 17092
#59888286
Tuesday, December 20, 2011 10:12 PM GMT
Looks fine to me. -[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Spectrumw
Join Date: 2009-08-04
Post Count: 13510
#59888309
Tuesday, December 20, 2011 10:12 PM GMT
for i, v in pairs(Workspace['Robxi16']:GetChildren()) do if v:IsA('Hat') then v:Destroy() end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
keepr
Join Date: 2009-11-05
Post Count: 1573
#59888390
Tuesday, December 20, 2011 10:13 PM GMT
Maybe its the script builder im in. The script builder keeps saying "Hats is not a valid member of a model"
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
keepr
Join Date: 2009-11-05
Post Count: 1573
#59888461
Tuesday, December 20, 2011 10:14 PM GMT
Thanks Spectrum ,it worked now :D
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
grimm343
Join Date: 2008-09-18
Post Count: 2796
#59891199
Tuesday, December 20, 2011 10:52 PM GMT
Your original script was looking for a child or property named 'Hats', inside of your character. That is why it didn't work. :s
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right