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

The Script on ServerScriptService doesn't change my BillboardGui Text?

Asked by
Nozyfo 2
4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
local tags = game:GetService("ServerStorage"):WaitForChild("Tags")
local NameTag = tags:WaitForChild("NameTag")
local RankTag = tags:WaitForChild("RankTag")

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(char)
        local Head = char.Head
        local lvl = player:WaitForChild("Level")
        local NT = NameTag:Clone()
        local NTLabel = NT.User

        local RT = RankTag:Clone()
        local RTLabel = RT.Rank

        --NameTag Overhead
        NT.Parent = Head
        NT.Adornee = Head

        --RankTag Overhead
        RT.Parent = Head
        RT.Adornee = Head

        NTLabel.Text = player.Name

        if lvl.Value == 1 then
            RTLabel.Text = "Level "..lvl.Value.." | Noob"
            print(lvl.Value)
        elseif lvl.Value == 2 then
            RTLabel.Text = "Level "..lvl.Value.." | Apprentice"
        elseif lvl.Value == 3 then
            RTLabel.Text = "Level "..lvl.Value.." | Journeyman"
        elseif lvl.Value == 5 then
            RTLabel.Text = "Level "..lvl.Value.." | Pathfinder"
        elseif lvl.Value == 10 then
            RTLabel.Text = "Level "..lvl.Value.." | Squire"
        elseif lvl.Value == 15 then
            RTLabel.Text = "Level "..lvl.Value.." | Adventurer"
        elseif lvl.Value == 20 then
            RTLabel.Text = "Level "..lvl.Value.." | Scout"
        end
    end)
end)

Answer this question