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
 

Why won't this work? (Changing Body Colors)

Previous Thread :: Next Thread 
EliteTCer is not online. EliteTCer
Joined: 17 Dec 2008
Total Posts: 5174
11 May 2014 07:52 PM
function PP(newPlayer)
local BodyColors = part.Parent:FindFirstChild("Body Colors")
if (BodyColors ~= nil) then
BodyColors.HeadColor = BrickColor.new(1)
BodyColors.LeftArmColor = BrickColor.new(1)
BodyColors.LeftLegColor = BrickColor.new(1)
BodyColors.RightArmColor = BrickColor.new(1)
BodyColors.RightLegColor = BrickColor.new(1)
BodyColors.TorsoColor = BrickColor.new(1)
end
end

script.Parent.PP:connect(newPlayer)
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
11 May 2014 07:57 PM
I don't know. Usually body colors don't affect the player in-game, so you usually have to color the torso, arms, etc. Wait, why are you doing BrickColor.new(1)? I think it's BrickColor3.new(RGB)
Report Abuse
EliteTCer is not online. EliteTCer
Joined: 17 Dec 2008
Total Posts: 5174
11 May 2014 08:03 PM
I'm not sure. Does anyone else see something wrong?
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
11 May 2014 08:05 PM
BodyColors.HeadColor = "Really Black"

That's an example; with body colors they don't use BrickColor.new.
Report Abuse
EliteTCer is not online. EliteTCer
Joined: 17 Dec 2008
Total Posts: 5174
11 May 2014 08:06 PM
Ok thanks I'll try that
Report Abuse
EliteTCer is not online. EliteTCer
Joined: 17 Dec 2008
Total Posts: 5174
11 May 2014 08:17 PM
I've tried
BodyColors.HeadColor = "Really Black"
BodyColors.HeadColor = ("Really Black")
BodyColors.HeadColor = BrickColor.new("Really Black")
BodyColors.HeadColor = BrickColor.new(1)
None work, I do not understand.
Report Abuse
EliteTCer is not online. EliteTCer
Joined: 17 Dec 2008
Total Posts: 5174
11 May 2014 08:30 PM
bump
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
11 May 2014 08:31 PM
local player = game.Players.LocalPlayer
local changeTo = "Bright red"

for i, v in pairs(player.Character:GetChildren()) do
if v:IsA("BasePart") then
v.BrickColor = BrickColor.new(changeTo)
end
end

-- this is a script that ForeverDev gave to me, idk if it'll do you any good but try it.
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