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

Make exaptions for people so they don't need to buy gamepass?

So I got a system on my cafe for a quick order. I made it so only people with a gamepass can use it. But I can't use it since I don't own the gamepass even tho its on my own place. So I want to know how I could make certain people use the system even tho they don't have the gamepass. So when the person has the gamepass or has the name, the button on the surface gui would show, but if not then it wouldn't show.

1 answer

✓ Accepted answer

Assuming the script contains a simple script checking the gamepass in a way like;

 if game:GetService("GamePassService"):PlayerHasPass(player, id) then 
        print(player.Name .. " has the game pass!")

you could simply add

 if game:GetService("GamePassService"):PlayerHasPass(player, id) or player.Name == "YourNameHere" then --player.Name is assuming you used the game.Players.PlayerAdded:Connect(function(player) method to create a player variable
        print(player.Name .. " has the game pass!")

2 comments

0

AKA a simple "or player.Name == "Name" will suffice

0

Awesome man! Thanks for the help!

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