01 | 16 function HandleCharacter(Player, Character) |
02 | 17 local Custom = Character:WaitForChild( 'Head' ):clone() |
03 | 18 Custom.Name = 'TastiesOverhead' |
04 | 19 Custom.Parent = Character |
05 | 20 Custom.face:Destroy() |
06 | 21 Character.Head.Transparency = 1 |
07 | 22 Create 'Weld' { |
08 | 23 Name = 'CustomWeld' ; |
09 | 24 Parent = Custom; |
10 | 25 Part 0 = Character.Head; |
11 | 26 Part 1 = Custom; |
12 | 27 } |
13 | 28 Create 'BillboardGui' { |
14 | 29 Name = 'Nametag' ; |
15 | 30 Parent = Custom; |
I attempt to change line 53 and line 40's colors.
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)
01 | 16 function HandleCharacter(Player, Character) |
02 | 17 local Custom = Character:WaitForChild( 'Head' ):clone() |
03 | 18 Custom.Name = 'TastiesOverhead' |
04 | 19 Custom.Parent = Character |
05 | 20 Custom.face:Destroy() |
06 | 21 Character.Head.Transparency = 1 |
07 | 22 Create 'Weld' { |
08 | 23 Name = 'CustomWeld' ; |
09 | 24 Parent = Custom; |
10 | 25 Part 0 = Character.Head; |
11 | 26 Part 1 = Custom; |
12 | 27 } |
13 | 28 Create 'BillboardGui' { |
14 | 29 Name = 'Nametag' ; |
15 | 30 Parent = Custom; |
Remember to remove the numbers.
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)
So Mr.Duck, to make a color changing brick or GUI I guess, Here is the code
1 | local TextButton = game.Workspace.TextButton |
2 |
3 | TextButton.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.