I made this game called Gang Wars. It runs like a mini game system, and when the players teleport the clothes can not be seen. But when the players reset the clothes appear. I am here because i need to know how to change the team clothe script, to were when the player is teleported on the team the clothe show, with out having to reset the character.

pnts = script.Pants shirt = script.Shirt

function GiveClothes(character) if not character:findFirstChild("Shirt") then shirt:Clone().Parent = character else character:findFirstChild("Shirt"):Destroy() shirt:Clone().Parent = character end

if not character:findFirstChild("Pants") then pnts:Clone().Parent = character else character:findFirstChild("Pants"):Destroy() pnts:Clone().Parent = character end end

game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(char) wait(1.12) local plr = game.Players:findFirstChild(char.Name) print(char.Name)

if plr.TeamColor ~= BrickColor.new("Really blue") then return else GiveClothes(char) end end) end)

Another example when you spawn on neutral team, and you walk on the blue team, clothes will not show unless you reset. What do i change to were, no matter what the clothes appear on the character with out having to reset?

2 comments

0

Use a code block please

0

Can you help or not?