Spectrial
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 3348 |
|
|
| 23 Jan 2013 01:41 PM |
RL = script.Parent.Parent["Right Leg"] LL = script.Parent.Parent["Left Leg"] RA = script.Parent.Parent["Right Arm"] LA = script.Parent.Parent["Left Arm"] TO = script.Parent.Parent["Torso"]
while true do wait() if script.Parent:findFirstChild("PlatformMotor6D") then script.Parent.Parent.Pants.PantsTemplate = script.Parent.Parent.Parent.Pants.PantsTemplate script.Parent.Parent.Shirt.ShirtTemplate = script.Parent.Parent.Parent.Shirt.ShirtTemplate RL.BrickColor = script.Parent.Parent.Parent["Right Leg"].BrickColor LL.BrickColor = script.Parent.Parent.Parent["Left Leg"].BrickColor RA.BrickColor = script.Parent.Parent.Parent["Right Arm"].BrickColor LA.BrickColor = script.Parent.Parent.Parent["Left Arm"].BrickColor TO.BrickColor = script.Parent.Parent.Parent["Torso"].BrickColor elseif script.Parent:findFirstChild("PlatformMotor6D") ~= true then script.Parent.Parent.Pants.PantsTemplate = "" script.Parent.Parent.Shirt.ShirtTemplate = "" RL.BrickColor = BrickColor.new("Mid Gray") LL.BrickColor = BrickColor.new("Mid Gray") RA.BrickColor = BrickColor.new("Mid Gray") LA.BrickColor = BrickColor.new("Mid Gray") TO.BrickColor = BrickColor.new("Mid Gray") end end
works perfectly in build mode.
any errors anyone can see?
only the colors work in play mode. |
|
|
| Report Abuse |
|
|
mexati
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 318 |
|
|
| 23 Jan 2013 02:18 PM |
L9-> if script.Parent:findFirstChild("Plat..6D") then Should not be working since it is not a condition. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2013 02:39 PM |
^ Yes, but it is checking if the current object is not nil. |
|
|
| Report Abuse |
|
|
mexati
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 318 |
|
|
| 23 Jan 2013 02:48 PM |
| I'm not sure but I think it is only when your character re-spawn the shirt and pant templates refreshes. |
|
|
| Report Abuse |
|
|