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

How do I set up Gamepass functionality in this simple script?

Asked by 4 years ago
local function CheckID(Group,ID,RankLock)
    if Group == 0 then return true else
    if Group == 1 then return true

    end
end

So, this one is relatively simple, and I'm sure lots of people could be able to do this. I, on the other hand, have no clue how setting up gamepass functionality works. The rest of it works fine, it's just the blurb after "if Group == 1 then" that I need help with.

This is a snippet of a larger script, but it's really simple. It's a morph system that sets up permissions on using morphs by a value in them. The value is "Group".

What I need help with is setting it up so that Group = 1 only returns true if they have a game pass. When I tried doing it, it didn't end up working right, and I have no clue why. As it stands, I have it set up so that they both return true because it's stable that way.

After checking for the game pass, it should return true (if they have it) else return false. Anybody know how to fix it? I couldn't find out. Thanks in advance to anybody who knows how.

1 answer

Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
4 years ago

You didn't explain what this did. If you want a white list for a group so they don't have to buy it if there a certain rank, I may help you. at this time I CANNOT as you need to put more detail and actually telling us what it does.

Ad

Answer this question