How To Make A Membership System

I could definitely see myself using this in the future. TY for this very simple and straightforward tutorial! :wink:

1 Like

I was wondering how to make a membership script and this solved my problem! Thanks @BuilderDolphin

1 Like

No problem, @intbyte! I hope this will be pretty useful for your project!

1 Like

No problem :wink: hope it’s useful

1 Like

Sorry but what is this script mean’t to do if it doesn’t give out the items you want?
so i am trying to make the script give out items once purchased.
I kinda need help

Also theres no button to say don’t show this message again could that be an idea?

1 Like

I’ve been looking for something like this for ages!

Thank you, I will put this to good use.

1 Like

No problem! Really hope it will be able to be put to use!

2 Likes

lemme just ctrl + d real quick.

1 Like

Thank you! I’m definitely going to use this and modify it a little. I’m going to use this for a trial game pass system.

Alright, good luck with that! (Sorry for responding so late)

Didn’t work, the isMember is not checker, and the timer make a random number like “1606439133”.
I have make just “10” to test.

In order for this to work, you’d need to GetAsync with the loop provided. If you don’t loop with GetAsync, it will just get your old MembershipInfo which is technically the Value you currently started with at the beginning of the game.

-- Gets membership data. Data will be the os.time() the membership expires
local MembershipInfo

while true do
    wait(30)
    local Success,Error = pcall(function()
    	MembershipInfo = MembershipData:GetAsync(Player.UserId.."-MembershipInfo")
    end)
    -- Loads data
    if not MembershipInfo then MembershipInfo = 0 end -- Sets to 0 if no data given
    		
    MembershipTime.Value = MembershipInfo
    		
    if os.time() <= MembershipInfo then
    	print("Player has membership")
    	IsMember.Value = true
    else
    	print("Player does not have membership")
    	IsMember.Value = false
    end
end

I tested this with 5 minutes and it works fine.

1 Like

Hi thanks for this reply LukeGabriel :slight_smile:

Thanks for helping! Appreciate it a lot.

This helped alot! Thanks for the resource!

No problem. Glad it helped you!

Hi, do you know how I would go about making a monthly reward for players?

EDIT: I think I found a way. Maybe I could give them a reward each time they renew?

thx for the help :slight_smile:

In my opinion, the best way to give monthly rewards for those with membership is to one, as you had said, to give a reward on renewal, or to give a reward when the month for the membership ends. If you’re talking about a non-membership monthly reward, just create a 1 month timer every time someone claims the reward, and give the reward every time the timer finishes. (Sorry for the late response)

This is what i was looking for!