so i made a script to give rank members some cloths for my game and i came across that it wont work on re spawning, here is my script
shirt="http://www.roblox.com/asset/?id=2711023361"
pants="http://www.roblox.com/asset/?id=2711025542"
game.Players.PlayerAdded:connect(function(player)
if player:GetRankInGroup(6081502) == 255 then
for i,v in pairs(player.Character:GetChildren()) do
if v:IsA("Shirt") then
v.ShirtTemplate=shirt
elseif v:IsA("Pants") then
v.PantsTemplate=pants
else
s=Instance.new("Shirt",player.Character)
p=Instance.new("Pants",player.Character)
s.ShirtTemplate=shirt
p.PantsTemplate=pants
end
end
end
end)

2 comments
most mods would add a note saying "Explain this answer"
Ok I will.