Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local MarketplaceService = game:GetService("MarketplaceService")
- local ShirtId = 962759094
- local PantId = 962759208
- function Check(a,b)
- local Success,Info = pcall(function()
- return MarketplaceService:GetProductInfo(a,Enum.InfoType.Asset)
- end)
- for i,v in next, Info do
- if Info["AssetTypeId"] == b then
- return true
- end
- end
- return false
- end
- local ShirtValid = Check(ShirtId,1)
- local PantValid = Check(PantId,1)
- Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(Char)
- local Shirt = Char:FindFirstChildOfClass("Shirt") or Instance.new("Shirt",Char)
- local Pants = Char:FindFirstChildOfClass("Pants") or Instance.new("Pants",Char)
- if ShirtValid then
- Shirt.ShirtTemplate = string.format("rbxassetid://%s",ShirtId)
- end
- if PantValid then
- Pants.PantsTemplate = string.format("rbxassetid://%s",PantId)
- end
- end)
- end)
Add Comment
Please, Sign In to add comment