local fighters = game.Workspace.Teams.Fighters local defenders = game.Workspace.Teams.Defenders plr = game.Workspace.LocalPlayer fighters.Shirt.ShirtTemplate = "http://www.roblox.com/Red-item?id=157673817" fighters.Pants.PantsTemplate = "http://www.roblox.com/Pants-item?id=157684158" if plr.fighters == true then plr.fighters.Shirt.ShirtTemplate:Destroy() plr.fighters.Pants.PantsTemplate:Destroy() wait(3) plr.fighters.Shirt.ShirtTemplate = "http://www.roblox.com/Red-item?id=157673817" plr.fighters.Pants.PantsTemplate = "http://www.roblox.com/Pants-item?id=157684158" defends.Shirt.ShirtTemplate = "http://www.roblox.com/Blue-item?id=157673856" defends.Pants.PantsTemplate = "http://www.roblox.com/Pants1-item?id=157684213" if plr.defenders == true then plr.defenders.Shirt.ShirtTemplate:Destroy() plr.defenders.Pants.PantsTemplate:Destroy() wait(3):Destroy() plr.defenders.Pants.PantsTemplate = "http://www.roblox.com/Pants1-item?id=157684213" plr.defenders.Shirt.ShirtTemplate = "http://www.roblox.com/Blue-item?id=157673856" end end
It when your on defenders team, you get the uniform, when your on fighters, you get the uniform. Works on solo but not ingame. Why?
It's supposed to be
game.Teams
not
game.Workspace.Teams
Because the Teams folder is not a part of Workspace.
If you mean the clothes, you did the http:// wrong.
ID=0000000 script.Parent.Shirt.ShirtTemplate="http://www.roblox.com/asset/?id="..ID