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

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

Asked by 5 years ago
Edited 5 years ago

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

0
Place a BillboardGui with a TextLabel in it within the Player's head. T0XN 276 — 5y

Closed as Not Constructive by User#19524 and evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago
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.

Ad