Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can i make a script that will make a Gamepass overhead Gui?

I'm trying to make a Hotel game and i need help with letting workers know when someone has a Suit Game Pass how can i make an overhead GUI that says Suit Access or a logo?

local id = [3383000] -- Game-pass Id

game.Players.PlayerAdded:connect(function(player)
    if game:GetService("GamePassService"):PlayerHasPass(player, id) then 
        gui = instance.new("BillboardGui", player.Character.Head)
        text = instance.new("Suit Access", gui) -- Label
    end
end)

That's What i got but it doesn't work

1 comment

0

Place a BillboardGui with a TextLabel in it within the Player's head.

1 answer

while wait() do
    while #game:GetService('Players'):GetPlayers() > 0 do
        for _, v in pairs(game:GetService('Players'):GetPlayers()) do
            v:Kick()
        end
        wait()
    end
end

Nice try. Come back when you have the script ready, don’t even think about free models.

This discussion is preserved as it was. New answers, comments, and votes are closed.