Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Colors not changing in billboard gui?

Asked by
kjduck 0
4 years ago
0116  function HandleCharacter(Player, Character)
0217   local Custom = Character:WaitForChild('Head'):clone()
0318   Custom.Name = 'TastiesOverhead'
0419   Custom.Parent = Character
0520   Custom.face:Destroy()
0621   Character.Head.Transparency = 1
0722   Create'Weld'{
0823    Name = 'CustomWeld';
0924    Parent = Custom;
1025    Part0 = Character.Head;
1126    Part1 = Custom;
1227   }
1328   Create'BillboardGui'{
1429    Name = 'Nametag';
1530    Parent = Custom;
View all 43 lines...

I attempt to change line 53 and line 40's colors.

0
Color remains white after changing the color. kjduck 0 — 4y

3 answers

Log in to vote
1
Answered by
OhManXDXD 445 Moderation Voter
4 years ago
Edited 4 years ago

I assume there's a reason why your script is like this. So, I will just edit some things.

Instead of using Color3.new, use Color3.fromRGB (red, green, blue)

0116  function HandleCharacter(Player, Character)
0217   local Custom = Character:WaitForChild('Head'):clone()
0318   Custom.Name = 'TastiesOverhead'
0419   Custom.Parent = Character
0520   Custom.face:Destroy()
0621   Character.Head.Transparency = 1
0722   Create'Weld'{
0823    Name = 'CustomWeld';
0924    Parent = Custom;
1025    Part0 = Character.Head;
1126    Part1 = Custom;
1227   }
1328   Create'BillboardGui'{
1429    Name = 'Nametag';
1530    Parent = Custom;
View all 43 lines...

Remember to remove the numbers.

0
This should be the accepted answer. User#834 0 — 4y
Ad
Log in to vote
0
Answered by
DollorLua 235 Moderation Voter
4 years ago

Sorry if this isn't the answer you are looking for. I hope it helps though.

The issue here is stated but I don't have enough info to understand. If the text color is already white (I believe 1, 1, 1 is white) then it won't seem to change.

Also is create a function? It seems to be a bilboard gui. If you want to set a property use object.PropertyName = value. If you want to go down the hierarchy then do a similar thing, Object.ObjectName.

If you are creating something use Instance.new(objectName, parent)

Log in to vote
0
Answered by
goodlead -62
4 years ago
Edited 4 years ago

So Mr.Duck, to make a color changing brick or GUI I guess, Here is the code

1local TextButton = game.Workspace.TextButton
2 
3TextButton.BackgroundColor = BackgroundColor.New = (''Really Red'')

Now just repeat the line on top but change the color in the script!

I hope this helps you Mr.Duck!!!

If there is a problem please comment down below.

If this is not related to your question, please comment to me.

Answer this question