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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Changing BodyColor's via Script

Previous Thread :: Next Thread 
DracoTheSecond is not online. DracoTheSecond
Joined: 07 Nov 2011
Total Posts: 859
17 Aug 2013 05:10 AM
Hey everyone,

I was just wondering how you change BodyColors via script.

I'm setting up a Character Customization GUI and changing your BodyColor is part of it.

So, here's what I have so far:

function onClicked()
game.Workspace.Model.Player.BodyColours.HeadColor= ???

Now what?!
Report Abuse
Cakins is not online. Cakins
Joined: 23 Jul 2009
Total Posts: 307
17 Aug 2013 05:19 AM
I haven't payed attention to anything called BodyColors before, though I can imagine something like that exists (too lazy to check). Is it BodyColors or BodyColours though? Not completely sure what your exact intention is. Whateva.

player = workspace.Cakins

for a, b in pairs(player:GetChildren()) do
if b:IsA("Part") then
b.BrickColor = BrickColor.new("Bright red")
end
end
Report Abuse
ddbaker95 is not online. ddbaker95
Joined: 29 Nov 2008
Total Posts: 127
17 Aug 2013 06:00 AM
local colors = game.Players.LocalPlayer.Character.BodyColors
if colors then
colors.HeadColor = BrickColor.new("Bright yellow")
colors.LeftArmColor = BrickColor.new("Bright yellow")
colors.RightArmColor = BrickColor.new("Bright yellow")
end

if you want to test this, it will only work in a LocalScript because i used "LocalPlayer"
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