wait(3) game.Players.PlayerAdded:connect(function(plr) local a = plr:FindFirstChild("Shirt") local b = plr:FindFirstChild("Pants") wait(2) if a and b then a:Destroy() b:Destroy() end Instance.new("Shirt",plr).ShirtTemplate = "70029859" Instance.new("Pants",plr).PantsTemplate = "66502974" end)
In the PlayerAdded
event you have a player
argument, If you are locating the Player's Uniforms check the Character instead by using the CharacterAdded
event.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local a = character:WaitForChild("Shirt") local b = character:WaitForChild("Pants") wait(1) a.ShirtTemplate = "rbxasset://70029859" b.PantsTemplate = "rbxasset://66502974" end) end)
Other than Removing the Original Clothing why not change the Clothes ID instead.