|
| 20 Jun 2014 11:04 AM |
Not sure why this isn't working. There are no errors:
game.Players.PlayerAdded:connect(function(player) if player:GetRankInGroup(460795) >= 45 and player:GetRankInGroup(460795) <= 120 then clothing = player.Character:GetChildren() for i = 1, #clothing do if clothing[i].Name == "Shirt" then newshirt = clothing[i]:Clone() newshirt.Parent = clothing.Parent newshirt.ShirtTemplate = "http://www.roblox.com/asset/?id=157342887" clothing:Destroy() end if clothing[i].Name == "Pants" then newpants = clothing[i]:Clone() newpants.Parent = clothing.Parent newpants.PantsTemplate = "http://www.roblox.com/asset/?id=157343123" clothing:Destroy() end end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2014 11:32 AM |
I think all you are missing is an end, it should look like this at the bottom:
end end end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 11:37 AM |
@zsolt; Woops. Sorry, I just forgot to add that.
This is a snippet of the script. There's no error with the ends in the actual script. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 11:53 AM |
I think you should do something like:
SEMI-PSEUDOCODE:
newshirt = Instance.new("shirt",playerModel) newshirt.ShirtTemplate = "blah" newshirt.Parent = playerMod
same with pants
playerMod should be equal to the players Model object (I forget how to do that...)
This is a really big mess, pardon me... |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 11:57 AM |
| Ooooh. So right now it's access the Players service instead? |
|
|
| Report Abuse |
|
|