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

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

Asked by 4 years 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 1495 — 4y

1 answer

Log in to vote
0
Answered by
2b2tpvp 17
4 years 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 -17 — 4y
Ad

Answer this question