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

How can I make VIP in a Game Pass?

Asked by 10 years ago

This should be a pretty easy answer for you that know how to script fairly well.

Before my BC ran out I used the old fashion VIP shirt for VIP, which users then had to buy to access the VIP room.

Now that I have BC again I would like to make a game pass users can buy which then automatically gives them VIP.

I also had another question regarding this; if I make a VIP game pass is there any way I can make a GUI that teleports people to the VIP room if they have the game pass?

Personally I think the VIP doors are old and outdated.

Thank you for your help

1 answer

Log in to vote
0
Answered by 10 years ago

http://wiki.roblox.com/index.php?title=PlayerHasPass_(Method)

You use game:GetService("GamePassService") to get the game pass service.

In it theres a method called PlayerHasPass.

This method takes two parameters, first is which player ur looking at and second is the id of the game pass.

Returns true or false.

pseudocodeincoming!

gamepassid = "lolnotanumber"

if game:getDATservice("GamePassService"):PlayerHasPass(nobodycaresguy, gamepassid) then

//oh hey look nobodycaresguy does have it yoloswagfitemeirl

everythingExplodes();

end
Ad

Answer this question