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: Color head script

Previous Thread :: Next Thread 
dannyz24 is not online. dannyz24
Joined: 14 Jun 2011
Total Posts: 2751
06 Jun 2013 12:18 AM
Is there a script where your head colour changes back to normal?Like when you first join an empty server, you head is 'yellow', and it only changes back when someone else joins.How do you make it so it can be the colour that you customized when you join instead of waiting for another person to join the server?

◙Dαякηєѕѕ тαкєѕ σνєя◙
Report Abuse
dannyz24 is not online. dannyz24
Joined: 14 Jun 2011
Total Posts: 2751
06 Jun 2013 12:20 AM
Found it I think...

function onChanged()
head = script.Parent.Head
torso = script.Parent.Torso
lleg = script.Parent["Left Leg"]
rleg = script.Parent["Right Leg"]
larm = script.Parent["Left Arm"]
rarm = script.Parent["Right Arm"]
wait(0.1)
if ((torso.BrickColor == game.Players[script.Parent.Name].TeamColor) and (head.BrickColor == BrickColor.new("Bright yellow"))) then
if ((rarm.BrickColor == BrickColor.new("Black")) and (larm.BrickColor == BrickColor.new("Black"))) then
if ((rleg.BrickColor == BrickColor.new("Black")) and (lleg.BrickColor == BrickColor.new("Black"))) then
color = script.Parent:findFirstChild("Body Colors")
if color~=nil then
head.BrickColor = color.HeadColor
torso.BrickColor = color.TorsoColor
lleg.BrickColor = color.LeftLegColor
rleg.BrickColor = color.RightLegColor
larm.BrickColor = color.LeftArmColor
rarm.BrickColor = color.RightArmColor
end
end
end
end
end
script.Parent["Right Arm"].Changed:connect(onChanged)

◙Dαякηєѕѕ тαкєѕ σνєя◙
Report Abuse
dannyz24 is not online. dannyz24
Joined: 14 Jun 2011
Total Posts: 2751
06 Jun 2013 12:20 AM
But paste that in the Input script which is this one.

function onPlayerRespawned(newPlayer)
if (newPlayer:findFirstChild("Humanoid")~=nil) then
LOL = script.ColorFix:clone()
LOL.Parent = newPlayer
LOL.Disabled = false
end
end
game.workspace.ChildAdded:connect(onPlayerRespawned)


◙Dαякηєѕѕ тαкєѕ σνєя◙
Report Abuse
dannyz24 is not online. dannyz24
Joined: 14 Jun 2011
Total Posts: 2751
06 Jun 2013 12:22 AM
Yes, it works correctly.

◙Dαякηєѕѕ тαкєѕ σνєя◙
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