Advertisement
4zx16

Remove Hats On Touch

Nov 27th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || REMOVE HATS ON TOUCH
  3. ]]
  4. local function OnTouch(hit)
  5.     local player = hit.Parent:GetChildren()
  6.    
  7.     for i = 1, #player do
  8.         if player[i].className == "Accessory" then
  9.             player[i]:remove()
  10.         end
  11.     end
  12. end
  13. script.Parent.Touched:Connect(OnTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement