generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: wont work in play mode...

Previous Thread :: Next Thread 
Spectrial is not online. 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 is not online. 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
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
23 Jan 2013 02:39 PM
^
Yes, but it is checking if the current object is not nil.
Report Abuse
mexati is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image