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

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

Asked by
Lualaxy 78
6 years ago

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

Log in to vote
1
Answered by 6 years ago

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!")
0
AKA a simple "or player.Name == "Name" will suffice User#20989 0 — 6y
0
Awesome man! Thanks for the help! Lualaxy 78 — 6y
Ad

Answer this question