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 » Scripters
Home Search
 

Re: Hair color

Previous Thread :: Next Thread 
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:19 PM
how change hair color with script, thank you
Report Abuse
YeahNicksAlt is not online. YeahNicksAlt
Joined: 26 Jul 2014
Total Posts: 154
22 May 2017 02:20 PM
your welcome .
Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:21 PM
? please how
Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:30 PM
?
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 02:33 PM
change the VertexColor of the Accessory mesh


Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:35 PM
yes but not work
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 02:36 PM
########################################################################## A single value goes from 0 to 1 There is a script in the link I gave you to convert a color to work with VertexColor
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 02:37 PM
wiki.roblox.com/index.php?title=API:Class/DataModelMesh/VertexColor

A single value goes from 0 to 1

There is a script in the link I gave you to convert a color to work with VertexColor


Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:42 PM
Player = game.Players.LocalPlayer.Player.Character

script.Parent.MouseButton1Down:connect(function()
local yellow = BrickColor.new("Bright yellow")
local yColor = yellow.Color
local yVector = Vector3.new(yColor.r,yColor.g,yColor.b)
Player[script.Parent.Parent.xSave.Value].Mesh.VertexColor = yVector
end)


No error message when I press the button
Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:43 PM
Not working
Report Abuse
ItsTheKiBloxer is not online. ItsTheKiBloxer
Joined: 17 Aug 2013
Total Posts: 46
22 May 2017 02:45 PM
Define the situation please
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 02:50 PM
the mesh is located inside a Handle which is inside the Accessory

Player.Character.Accessory.Handle.Mesh


Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 02:55 PM
Player = game.Players.LocalPlayer
Character = Player.Character

script.Parent.MouseButton1Down:connect(function()
local yellow = BrickColor.new("Bright yellow")
local yColor = yellow.Color
local yVector = Vector3.new(yColor.r,yColor.g,yColor.b)
script.Parent.Parent.Folder[script.Parent.Parent.xSave.Value].Handle.Mesh.VertexColor = yVector
script.Parent.Parent.Folder[script.Parent.Parent.xSave.Value]:Clone().Parent = game.Players.LocalPlayer.Character

end)


I want that when I press a button, the hair color changes
When I press the button, it does not change the hair color and there is no error message

Xsave = BoyAnimeHair_White
Report Abuse
ItsTheKiBloxer is not online. ItsTheKiBloxer
Joined: 17 Aug 2013
Total Posts: 46
22 May 2017 03:17 PM
this maybe? (i put it between space bars because of hashtags) script . Parent . Mouse Button # Down : connect (function() workspace . Player # . Accessory . Handle . Mesh . ###### Color = Vector # . new ( # , # , # ) end)
Report Abuse
ItsTheKiBloxer is not online. ItsTheKiBloxer
Joined: 17 Aug 2013
Total Posts: 46
22 May 2017 03:17 PM
script . Parent . Mouse Button # Down : connect (function()
workspace . Player # . Accessory . Handle . Mesh . ###### Color = Vector # . new ( # , # , # )
end)
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 03:32 PM
The color change may not be visible because the VertexColor property changes the hue of a texture.

It's really only visible with darker colors, depending on what color the texture originally was.

https://www.youtube.com/watch?v=pAGu_TMfhSU

As you can see from the video, color changes that are from really light colors are not as visible as changes from colors that stand out more.

Changing hue is the easiest way to change hair "color", but it doesn't work for every color depending on the original color of the hair.

The only way to change the actual color is to make your own hair texture and change the color using an image editing software and then reupload it to ROBLOX.





Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
22 May 2017 03:46 PM
export the texture of the hair out and make it grayscale with higher brightness
then vertex color should actually make changes
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
22 May 2017 03:47 PM
either that or change the hue value of the image to the color u prefer
changing hue will move the colors around but any black-grey-white colors are left alone, very helpful in things like re-coloring
Report Abuse
PointFlash142 is not online. PointFlash142
Joined: 28 Apr 2017
Total Posts: 49
22 May 2017 04:32 PM
thank you very much I find
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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