|
| 04 Jan 2016 12:25 PM |
I'm trying to get this to work for a character creator I am building it is in a local script and in the Starter GUI. Any help?
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change.Value local BodyColors = char:FindFirstChild("Body Colors") while true do wait(0.1) if setter == 0 then print 'it is 0' BodyColors.HeadColor = BrickColor.new("Really blue") BodyColors.LeftArmColor = BrickColor.new("Really blue") BodyColors.LeftLegColor = BrickColor.new("Really blue") BodyColors.RightArmColor = BrickColor.new("Really blue") BodyColors.RightLegColor = BrickColor.new("Really blue") BodyColors.TorsoColor = BrickColor.new("Really blue") end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Jan 2016 01:19 PM |
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change local BodyColors = char:FindFirstChild("Body Colors")
while true do wait(0.1) if setter.Value == 0 then print 'it is 0' BodyColors.HeadColor = BrickColor.new("Really blue") BodyColors.LeftArmColor = BrickColor.new("Really blue") BodyColors.LeftLegColor = BrickColor.new("Really blue") BodyColors.RightArmColor = BrickColor.new("Really blue") BodyColors.RightLegColor = BrickColor.new("Really blue") BodyColors.TorsoColor = BrickColor.new("Really blue") end end
--That should fix your issue
Rip in pieces in irl |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2016 01:44 PM |
| I tried it and it still doesn't work. |
|
|
| Report Abuse |
|
|
| |
|
XIPokezIX
|
  |
| Joined: 24 Sep 2015 |
| Total Posts: 381 |
|
|
| 04 Jan 2016 05:20 PM |
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change local bc = char:FindFirstChild("BodyColors") properties={bc.HeadColor,bc.LeftArmColor,bc.LeftLegColor,bc..RightArmColor,bc.RightLegColor, bc.TorsoColor}
spawn(function() while wait() do while setter.Value == 0 do print 'it is 0' for i,v in pairs(properties)do v.BrickColor=BrickColor.new("Bright blue") end end end end) |
|
|
| Report Abuse |
|
|
XIPokezIX
|
  |
| Joined: 24 Sep 2015 |
| Total Posts: 381 |
|
|
| 04 Jan 2016 05:41 PM |
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change local bc = char:FindFirstChild("BodyColors") properties={bc.HeadColor,bc.LeftArmColor,bc.LeftLegColor,bc.RightArmColor,bc.RightLegColorbc.TorsoColor}
spawn(function() while wait() do while setter.Value == 0 do print 'it is 0' for i,v in pairs(properties)do v.BrickColor=BrickColor.new("Bright blue") end end end end) |
|
|
| Report Abuse |
|
|
XIPokezIX
|
  |
| Joined: 24 Sep 2015 |
| Total Posts: 381 |
|
|
| 04 Jan 2016 05:42 PM |
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change local bc = char:FindFirstChild("BodyColors") properties={bc.HeadColor,bc.LeftArmColor,bc.LeftLegColor,bc.RightArmColor,bc.RightLegColor,bc.TorsoColor}
spawn(function() while wait() do while setter.Value == 0 do print 'it is 0' for i,v in pairs(properties)do v.BrickColor=BrickColor.new("Bright blue") end end end end) |
|
|
| Report Abuse |
|
|
XIPokezIX
|
  |
| Joined: 24 Sep 2015 |
| Total Posts: 381 |
|
|
| 04 Jan 2016 05:44 PM |
local player = game.Players.LocalPlayer local char = player.Character local setter = script.Parent.Change local bc = char:FindFirstChild("Body Colors") properties={bc.HeadColor,bc.LeftArmColor,bc.LeftLegColor,bc.RightArmColor,bc.RightLegColor,bc.TorsoColor}
spawn(function() while wait() do while setter.Value == 0 do print 'it is 0' for i,v in pairs(properties)do v=BrickColor.new("Bright blue") end end end end) ---omg so many mistakes fuq me mb |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2016 06:27 PM |
| why not use the Skin object? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Craftero
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 1451 |
|
|
| 07 Jan 2016 01:48 PM |
@Everyone who suggests the Skin object
I was informed recently that the Skin object is actually deprecated. This means it is used for compatibility with older Roblox games only.
Therefore, we must come up with a new, efficient way of changing the Player's skin colour. Haven't got anything yet myself, but if anybody does, please let us know hear. |
|
|
| Report Abuse |
|
|
Craftero
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 1451 |
|
|
| 07 Jan 2016 01:50 PM |
Oops, spelling mistake: *Hear -> Here |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jan 2016 04:50 PM |
| Still haven't found an answer to my problem, but lol |
|
|
| Report Abuse |
|
|
|
| 07 Jan 2016 05:34 PM |
| BodyColors is the one way to change skin color. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 08:49 AM |
| Yeah, but how is the question. Using a local script. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2016 08:30 AM |
| Going to bump this again because I still don't have my problem fixed. |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 16 Jan 2016 01:14 PM |
| Add one of those bodycolor thingies, then just remove the one in the character and clone this one |
|
|
| Report Abuse |
|
|