|
| 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
|
  |
| 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
|
  |
| 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 |
|
|