vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 11 Aug 2015 02:08 PM |
function onjoin(plr) plr.CharacterAdded:connect(function(char) wait(1)
char = plr.Character local player = game.Players.LocalPlayer
if player.TeamColor == BrickColor.new("Medium Green") then local shirt = char:findFirstChild("Shirt") if shirt then shirt:Destroy() end local pants = char:findFirstChild("Pants") if pants then pants:Destroy() end local pants2 = Instance.new("Pants",char) pants2.PantsTemplate = "http://www.roblox.com/Rothco-Sea-Tiger-Operator-item?id=232155329"
local shirt2 = Instance.new("Shirt",char) shirt2.ShirtTemplate = "http://www.roblox.com/Rothco-Sea-Tiger-Operator-item?id=232154164"
end end) end
game.Players.PlayerAdded:connect(onjoin)
I already tried using rbxassetid:// it still doesn't work when I remove the if statement that checks the team, it works fine, but it gives clothes to everyone regardless of the team and yes I subtracted 1 from the id of the clothes and yes it is in a local script please help me |
|
|
| Report Abuse |
|
|
Dman2436
|
  |
| Joined: 26 May 2012 |
| Total Posts: 1039 |
|
|
| 11 Aug 2015 02:11 PM |
pants: http://www.roblox.com/asset/?id=232155328 shirt: http://www.roblox.com/asset/?id=232154164 you didnt have the right pants id btw its not always 1 behind |
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |
|