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

How come my overhead UI stopped working?

Asked by 3 years ago
Edited 3 years ago

I have a overhead ui and it worked a couple hours ago but it wont now what's the problem?

local GroupID = 11777382

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        warn("Character Was Added")
        local roleID = Player:GetRankInGroup(GroupID)
        local PlayerRank = Player:GetRoleInGroup(GroupID)
        --// GUI OBJECTS
        local OverheadClone = script.Overhead:Clone();
        local RankFrame = OverheadClone.Frame

        local playerHead = Character:WaitForChild("Head")


        if roleID > 0 then
            OverheadClone.Parent = playerHead
            RankFrame.Rank.Text = PlayerRank
            RankFrame.Username.Text = Player.Name
        end
    end)
end) 
0
This code seems to work completely fine for me. Try have a look at your BillboardGui properties and make sure you have a BillboardGui as a child in your script EnzoTDZ_YT 275 — 3y
0
If the user isn't in the group however it doesn't show the over head ui so thats also a good idea to make sure you or they are in the group. EnzoTDZ_YT 275 — 3y

Answer this question