LaedereJoin Date: 2013-06-17 Post Count: 23630 |
Since ROBLOX decided to change the class name of hats, a lot of hat removing scripts don't work anymore. Here's a fix.
https://www.roblox.com/item.aspx?id=550027922 |
|
LaedereJoin Date: 2013-06-17 Post Count: 23630 |
b |
|
|
1) CTRL - H
2) Find: ":IsA("Hat")
3) Replace: ":IsA("Accessory")
4) ENTER
fixed
|
|
|
ignore the first " on 2 and 3 because i wanted to quote it but changed my mind but forgot to remove like... you know... the quotation marks
|
|
LaedereJoin Date: 2013-06-17 Post Count: 23630 |
Be quiet noob or I'll report you |
|
ClanAtlasJoin Date: 2008-08-09 Post Count: 500 |
repeat wait(1)
for i,v in pairs(game.Workspace:GetChildren())do
coroutine.wrap(function()
if v.className=='Hat'or v.className=='Tool'or v.className=='Accessory'then
v:Destroy();
end;
end)();
end;
wait(1)
until nil
|
|
LaedereJoin Date: 2013-06-17 Post Count: 23630 |
or you can just do a child.added to avoid an infite loop lol |
|
PraeforJoin Date: 2016-11-14 Post Count: 258 |
ClanAtlas have you heard of these cool things called events?
|
|
ClanAtlasJoin Date: 2008-08-09 Post Count: 500 |
i set it to 1 since i had it defaulted to 60 since its for my game
just a clean up script for anybody who needs it that just works
|
|
elite6247Join Date: 2010-06-13 Post Count: 13086 |
Clan you forgot to unban :/ |
|
ClanAtlasJoin Date: 2008-08-09 Post Count: 500 |
oh sry i have kidney stones so im on more code dean than lil wayne
give me like 2 minutes @elite
|
|
elite6247Join Date: 2010-06-13 Post Count: 13086 |
👌 |
|
|
game.Workspace.ChildAdded:connect(function(h)
repeat wait(.33) until h ~= nil
if h:isA("Accessory") then
h:Destroy()
end
end) |
|
|
stop arbitrarily waiting 1/3rd of a second and just call wait() without an argument. does the same thing lol. |
|