How do I make a Roleplay Name GUI that you can customise the colours (I already have a basic RP name with just grey text)
If you need to color text of Gui instances set the TextColor3 property.
TextLabel.TextColor3 = Color3.new(1, 0, 0) --red text
I said i already have the RP name but i don’t know how to make it with colors
I added how to achieve that right at the bottom of my reply.
like this
I might be able to do it myself but i don’t know where the billboard GUI will be located once it is Instanced
do you know what the exact place the text label will be located?
Put it on the character’s head.
Can you show your basic rp name script?
Whats the code to get to the players head
remoteEvent.OnServerEvent:Connect(function(plr, name)
local char = plr.Character or plr.CharacterAdded:Wait()
local filteredName = game:GetService("TextService"):FilterStringAsync(name, plr.UserId)
local filteredNameAsString = filteredName:GetNonChatStringForBroadcastAsync()
local nameGui = char.Head:FindFirstChild("NameGui")
local nameLabel = nameGui:FindFirstChild("NameLabel")
nameLabel.Text = filteredNameAsString
end)
Just parent the BillboardGui to the character’s head.
remoteEvent.OnServerEvent:Connect(function(plr, name)
local char = plr.Character or plr.CharacterAdded:Wait()
local filteredName = game:GetService("TextService"):FilterStringAsync(name, plr.UserId)
local filteredNameAsString = filteredName:GetNonChatStringForBroadcastAsync()
local nameGui = char.Head:FindFirstChild("NameGui")
local nameLabel = nameGui:FindFirstChild("NameLabel")
nameLabel.TextColor3 = Color3.new(0,0,0) --Change to the color you want
nameLabel.Text = filteredNameAsString
end)
better way to put the billboardgui to the player head is using .Adornee so you dont have to move around the gui, use .Adornee instead of .Parent