I made this game called Gang Wars. It runs like a mini game system, and when the players teleport to game map while switching from spectator mode to red / blue team, the clothes can not be seen. But when the players reset while still on the red/blue team you can now see the clothing. I am here because i need to know what to change in the script, to were when the player is teleported on the team, the clothe show. Without 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 with spawns in work space, 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? Thanks for the help.

6 comments

0

Perhaps, just changing the id's in their clothes would work?

0

Ok thx for replying, ill try that

0

But if i change the id in the clothes, its going to change the texture. When the players teleport the clothes wont change, but when i restart then,they appear

0

Just a comment, be careful with the name Gang Wars, it might get taken down by ROBLOX.

0

ok thx for the tip. And i will take that to mind

0

or do plr:LoadCharacter