I could definitely see myself using this in the future. TY for this very simple and straightforward tutorial!
I was wondering how to make a membership script and this solved my problem! Thanks @BuilderDolphin
No problem hope it’s useful
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?
I’ve been looking for something like this for ages!
Thank you, I will put this to good use.
No problem! Really hope it will be able to be put to use!
lemme just ctrl + d real quick.
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.
Hi thanks for this reply LukeGabriel
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
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!