Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --How to make a Hat Remover Script
- --Credit: OwenBLOXs YouTube @ https://www.youtube.com/channel/UCZYzTtIPHGvMGkHOhR2WQQA?view_as=subscriber, and RBX: xXTimeZeroXx
- --This goes into the Script
- function onTouched(hit)
- local d = hit.Parent:GetChildren()
- for i=1, #d do
- if (d[i].className == "Accessory") then d[i]:remove()
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- --Tip: If you're making a custom character and you want to remove the hats so it doesn't get in your way, place the Script into the SpawnLocation. This makes it so that players spawn without hats/accessories.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement