of     1   

purplescheer9
#139501652Monday, July 07, 2014 4:48 AM GMT

so I'm trying to make a script that noobifies you. So far all I have is an attempt to remove your hat though. but it says "player is not a valid member of DataModel". Here's the script! function nubcaik(player) for i, v in pairs(game.player:GetChildren()) do if v:IsA("Hat") then v:remove() end end end game.Players.PlayerAdded:connect(nubcaik)
Aediion
#139502096Monday, July 07, 2014 4:53 AM GMT

change it to for i, v in pairs(player:GetChildren()) do its searching in game for player, but you've already defined player
jknite
#139502198Monday, July 07, 2014 4:54 AM GMT

function nubcaik(player) ply = game.Workspace:findFirstChild(player) chld = plr:getChildren() for i, v in pairs(chld) do if v:IsA("Hat") then v:remove() end end game.Players.PlayerAdded:connect(nubcaik)
jknite
#139502270Monday, July 07, 2014 4:55 AM GMT

ply is plr, my autocorrect is acting up. -Jknite
purplescheer9
#139502357Monday, July 07, 2014 4:56 AM GMT

Thanks! But now I see that it doesn't remove hats. I don't get why though. ~I like trees
purplescheer9
#139502926Monday, July 07, 2014 5:02 AM GMT

btw JKnite, your script gives me an error on line 3 saying that for some reason plr is a nil value even though I changed ply to plr. ~I like trees
IAmTheRolo
#139503261Monday, July 07, 2014 5:06 AM GMT

function nubcaik(plyr) for i,v in pairs(plyr.Character:GetChildren()) do if v:IsA'Hat' then v:Destroy() end end end game.Players.PlayerAdded:connect(nubaik)
purplescheer9
#139505467Monday, July 07, 2014 5:33 AM GMT

Still doesn't work ~I like trees

    of     1