Guest User

Untitled

a guest
Feb 5th, 2023
1,057
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 1 0
  1. local removedHats = {}
  2. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  3. if v:IsA("Accessory") then
  4. if v.Handle:FindFirstChildOfClass("Mesh") or v.Handle:FindFirstChildOfClass("SpecialMesh") then
  5. if v.Handle:FindFirstChildOfClass("SpecialMesh") then
  6. v.Handle:FindFirstChildOfClass("SpecialMesh"):Remove()
  7. table.insert(removedHats, v.Name)
  8. end
  9. end
  10. end
  11. end
  12.  
  13. if #removedHats > 0 then
  14. game.StarterGui:SetCore("SendNotification", {
  15. Title = "The Meshes have been removed from your hats [✓]",
  16. Text = "",
  17. Duration = 5,
  18. })
  19. game.StarterGui:SetCore("SendNotification", {
  20. Title = "Hats that were Unmeshed:",
  21. Text = table.concat(removedHats, "\n"),
  22. Duration = 8.5,
  23. })
  24. end
  25.  
Advertisement
Add Comment
Please, Sign In to add comment