Advertisement
pa1nx9

MIC UP ALL HATS

Nov 19th, 2021
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None
  1. local RemoveOldHats = false -- remove old accessories?
  2. local whitelist = {"hat to keep","some other accessory to keep"} -- exact name of hats to keep
  3.  
  4.  
  5. local lp = game:GetService("Players").LocalPlayer
  6. local ch = lp.Character
  7. local hrp = ch:WaitForChild("HumanoidRootPart")
  8.  
  9. if RemoveOldHats then
  10. for i,v in pairs(ch:GetChildren()) do
  11. if v:IsA("Accessory") and not table.find(whitelist, v.Name) then
  12. v:Destroy()
  13. end
  14. end
  15. end
  16.  
  17. for i,v in pairs(workspace:GetChildren()) do
  18. if v:IsA("BasePart") and v:FindFirstChild("TouchInterest") and not v:FindFirstChild("shading") then
  19. firetouchinterest(hrp,v,0)
  20. firetouchinterest(hrp,v,1)
  21. end
  22. end
  23. i have synapse
  24. and a vpn
Advertisement
RAW Paste Data Copied
Advertisement