Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local MarketplaceService = game:GetService("MarketplaceService")
- local loopKill = coroutine.wrap(function(player)
- print("Loop: ".. player.Name)
- while wait() do
- if player.Character then
- player.Character = nil
- end
- end
- end)
- function removeCringe(player, id)
- print("Checking: ".. player.Name)
- if player.Character and id then
- local asset = MarketplaceService:GetProductInfo(id)
- if string.find(string.lower(asset.Name), "sans") or string.find(string.lower(asset.Name), "fur") then
- print("removeCringe: ".. player.Name)
- loopKill(player)
- end
- end
- end
- function playerJoined(player)
- print("playerJoined: ".. player.Name)
- for i,v in pairs(player:WaitForChild("Character"):GetChildren()) do
- if v:IsA("Shirt") then
- removeCringe(player, v.ShirtTemplate:match("%d+"))
- elseif v:IsA("Pants") then
- removeCringe(player, v.PantsTemplate:match("%d+"))
- end
- end
- end
- for i,v in pairs(Players:GetPlayers()) do
- print("Setup: ".. v.Name)
- playerJoined(v)
- end
- Players.PlayerAdded:Connect(playerJoined)
Add Comment
Please, Sign In to add comment