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

How do i make rainbow color Name tags overhead GUI? [closed]

Asked by 7 years ago

I have tried my butt off but cant seem to do it?

Closed as Not Constructive by docrobloxman52, 1waffle1, and GoldenPhysics

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
lyxture 27
7 years ago
game.Workspace.ChildAdded:connect(function(plr)
    wait(2)
    local PartTag = Instance.new("Part",plr)
    PartTag.CanCollide = false
    PartTag.Transparency = 1
    local Weld = Instance.new("Weld",PartTag)
    Weld.Part0 = PartTag
    Weld.Part1 = plr.Head
    Weld.C1 = CFrame.new(0,2,0)
    local NameGui = Instance.new("SurfaceGui",PartTag)
    local Tag = Instance.new("TextLabel",NameGui)
    Tag.Text = plr.Name
    Tag.Size = UDim2.new(1,0,1,0)
    Tag.BackgroundTransparency = 1
    Tag.TextSize = 100
    local NameGui2 = Instance.new("SurfaceGui",PartTag)
    NameGui2.Face = "Back"
    local Tag2 = Instance.new("TextLabel",NameGui2)
    Tag2.Text = plr.Name
    Tag2.Size = UDim2.new(1,0,1,0)
    Tag2.BackgroundTransparency = 1
    Tag2.TextSize = 100
    local a = math.random(1,255)
    local b = math.random(1,255)
    local c = math.random(1,255)
    Tag.TextColor3 = Color3.new(a/255,b/255,c/255)
    Tag2.TextColor3 = Color3.new(a/255,b/255,c/255)
end)

script in the workspace this gives youre tag a random color

Ad