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 » Building Helpers
Home Search
 

Re: Changing bodycolor? (Sort of advanced)

Previous Thread :: Next Thread 
WarriorBob is not online. WarriorBob
Joined: 05 Apr 2008
Total Posts: 634
04 Aug 2011 02:43 PM
function spawn(SP)
local BodyColors = SP.Parent:FindFirstChild("Body Colors")
if SP.Neutral then
if SP.TeamColor==BrickColor.new("Earth green") then
BodyColors.HeadColor = BrickColor.new(141) BodyColors.LeftArmColor = BrickColor.new(141)
BodyColors.LeftLegColor = BrickColor.new(141)
BodyColors.RightArmColor = BrickColor.new(141)
BodyColors.RightLegColor = BrickColor.new(141)
BodyColors.TorsoColor = BrickColor.new(141)
end
end
if SP.TeamColor==BrickColor.new("Brick yellow") then
BodyColors.HeadColor = BrickColor.new(5) BodyColors.LeftArmColor = BrickColor.new(5)
BodyColors.LeftLegColor = BrickColor.new(5)
BodyColors.RightArmColor = BrickColor.new(5)
BodyColors.RightLegColor = BrickColor.new(5)
BodyColors.TorsoColor = BrickColor.new(5)
end
end
end
end
end

function onPlayerEntered(NewPlayer)
newPlayer.Changed:connect(function(C) if C=="Character" then spawn(NewPlayer) end end)
end

game.Players.ChildAdded:connect(onPlayerEntered)


This should change the bodycolor of a player on each team, each time they spawn. Will it work?
Report Abuse
kieranboy1 is not online. kieranboy1
Joined: 20 Aug 2009
Total Posts: 701
04 Aug 2011 02:46 PM
This is building helpers dude :)
Report Abuse
WarriorBob is not online. WarriorBob
Joined: 05 Apr 2008
Total Posts: 634
04 Aug 2011 02:47 PM
Gahhh, clicked the wrong one... xD
Report Abuse
kieranboy1 is not online. kieranboy1
Joined: 20 Aug 2009
Total Posts: 701
04 Aug 2011 02:49 PM
hehe ^^_ It's kinda usless hee, i mean I don't have a clue about scripting :L and look at the date i joined :P
Report Abuse
hoboboy119 is not online. hoboboy119
Joined: 15 Mar 2010
Total Posts: 1157
04 Aug 2011 02:51 PM
Warrior, its fine.

We happen to have some fine scripters on the Building Helpers.

*cough*
SCARFACIAL and pauljkl
*cough*

~♫ Hobo ♫~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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