Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Overhead GUI doesn't work how can i fix these?

Asked by 8 days ago

did i script this correctly because it only gave me the bbgfan

local bbgFan = game.ServerStorage.OverheadGroup
local bbgVip = game.ServerStorage.OverheadVip
local bbgAll = game.ServerStorage.OverHeadAll

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(char)

local HasPass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,12330967)

    if player:IsInGroup(7870490) then
        local cloneg = bbgFan:Clone()
            cloneg.Parent = game.Workspace:WaitForChild(player.Name).Head
    elseif HasPass then
        local cloneg2 = bbgVip:Clone()
            cloneg2.Parent = game.Workspace:WaitForChild(player.Name).Head
    elseif player:IsInGroup(7870490) and HasPass then
        local cloneg3 = bbgAll:Clone()
           cloneg3.Parent = game.Workspace:WaitForChild(player.Head).Head
        end
    end)
end)
0
You should put the highest/most at the top, and the lowest/least at the bottom. Dovydas1118 1072 — 7d

1 answer

Log in to vote
0
Answered by
2b2tpvp 17
7 days ago
local bbgFan = game.ServerStorage.OverheadGroup
local bbgVip = game.ServerStorage.OverheadVip
local bbgAll = game.ServerStorage.OverHeadAll

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(char)

local HasPass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,12330967)

    if player:IsInGroup(7870490) and HasPass then
        local cloneg = bbgAll:Clone()
            cloneg.Parent = game.Workspace:WaitForChild(player.Name).Head
    elseif player:IsInGroup(7870490) then
        local cloneg2 = bbgFan:Clone()
            cloneg2.Parent = game.Workspace:WaitForChild(player.Name).Head
    elseif HasPass then
        local cloneg3 = bbgVip:Clone()
           cloneg3.Parent = game.Workspace:WaitForChild(player.Head).Head
        end
    end)
end)
0
it still doesnt work stevenfury91 6 — 7d
Ad

Answer this question