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

How do you make a Team Change GUI that is a gamepass?

I have been trying to get it for months but i have had no help! Please somebody help. PLEASE!

3 comments

0

Check if the player has the gamepass ID, clone the GUI into the player's PlayerGui. Simple, try this and include the script in your next question so we can help.

0

I dont even know what that means, Is there a chance you could make it for me?

0

Yea, I need help with this as well

1 answer

First of all scriptinghelpers.org is not request site if you read what the site says before you post!

Second of all if you don't know how to clone and stuff please get the basic knowlage of roblox lua scripting.

Now I will provide you with a part of the script you need but you have to do the other things by yourself.

local id = GAMEPASSID

game.Players.PlayerAdded:connect(function(player)
    if game:GetService("GamePassService"):PlayerHasPass(player, id) then 
        print(player.Name .. " has the game pass!")
    else
        print(player.Name .. " doesn't have the game pass...")
    end
end)

Now you don't need to leave the print functions in but its recommended so you know if the scirpt even works. Now its easy to undertand the script but if you want me to explain what this even means then I will update my answer. I hope this helps.

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