|
| 21 Oct 2013 06:23 PM |
When I made it 3 months ago it was working perfectly, however now something has happened and it doesn't work for what ever reason. I tested it and it came up with this: "TeamColor is not a valid member of DataModel" I'm guessing that TeamColor is now something else? |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2013 06:25 PM |
Script please.
Sanctuary <3 ᶘ ᵒᴥᵒᶅ |
|
|
| Report Abuse |
|
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
| |
|
| |
|
|
| 21 Oct 2013 06:26 PM |
Get ninjad.
Sanctuary <3 ᶘ ᵒᴥᵒᶅ |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2013 06:26 PM |
if script.Parent.Parent.TeamColor == BrickColor.new("Bright red") then if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Shirt") == nil then if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove() a = Instance.new("Shirt") a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672") a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) b = Instance.new("Pants") b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680") b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) else a = Instance.new("Shirt") a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672") a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) b = Instance.new("Pants") b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680") b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) end else if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove() workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove() a = Instance.new("Shirt") a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672") a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) b = Instance.new("Pants") b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680") b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) else workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove() a = Instance.new("Shirt") a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672") a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) b = Instance.new("Pants") b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680") b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name) end end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Oct 2013 06:38 PM |
| You're putting it in the wrong place most likely. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2013 06:44 PM |
| Oh yeah, it needed to be in StarterGui. Also another problem, how do I make it loop so if I die/reset it still uses these clothes, because right now it doesn't. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2013 06:57 PM |
Make it wait for char (I'm assuming that's your prob)
repeat wait() until player.Character--pseudocode |
|
|
| Report Abuse |
|
|