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

My Tag Gui script is not responding properly, can anyone help me find the problem?

Asked by 5 years ago

I am creating a Billboard Gui with a tag onto my character that says "Admin". I have rescripted this script about 4 times and I'm on the verge of just raging at my computer. Can anyone help me find the problem?

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

game.Players.PlayerAdded.Connect(function(player)

    player.CharacterAdded.Connect(function(character)

        if player.Name == "RobloxDeveloperJay" then 
            if character.Head:FindFirstChild("BillboardGui") then
            else                
                local clonedgui = billboardgui:Clone()
                clonedgui.TextLabel.Text = "Admins"
                clonedgui.TextLabel.TextColor3 = Color3.fromRGB(179, 33, 33)
                clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head                
            end
        end

    end)



end)


0
What is the error? maumaumaumaumaumau 98 — 5y

Answer this question