Advertisement
lafur

Untitled

Jul 30th, 2020 (edited)
1,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local MarketplaceService = game:GetService("MarketplaceService")
  3.  
  4. local loopKill = coroutine.wrap(function(player)
  5.     while wait() do
  6.         if player.Character then
  7.             player.Character = nil
  8.         end
  9.     end
  10. end)
  11.  
  12. function removeCringe(player, id)
  13.     if player.Character and id then
  14.         local asset = MarketplaceService:GetProductInfo(id)
  15.         if string.find(string.lower(asset.Name), "sans") or string.find(string.lower(asset.Name), "fur") then
  16.             loopKill(player)
  17.         end
  18.     end
  19. end
  20.  
  21. function playerJoined(player)
  22.     for i,v in pairs(player:WaitForChild("Character"):GetChildren()) do
  23.         if v:IsA("Shirt") then
  24.             removeCringe(player, v.ShirtTemplate:match("%d+"))
  25.         elseif v:IsA("Pants") then
  26.             removeCringe(player, v.PantsTemplate:match("%d+"))
  27.         end
  28.     end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement