Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onTouched(hit)
- local d = hit.Parent:GetChildren()
- for i=1, #d do
- if (d[i].className == "Hat") then
- d[i]:remove()
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- --[[
- _____ ___________ _ _
- | ____\ \_ _____/ \ \ / /
- | | | \ | __) \ \ / /
- | | | / | __ \ \ \ / /
- |_____/ /_______ / \ \ / /
- \/ \ /
- __________________________________\ /______
- |___________________________________\/_______| WAS HERE!!!!!!!!!!!!!!
- ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement