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

Is there any web API for checking if a user has premium?

Is there any web API for checking if a user has premium?

I would like to make a website for limiteds but one of the features I want to include would require checking if someone has premium or not. Is there any web api that can do that?

Or if not, how would be the best way to determine if someone has Premium (not BC, TBC, etc) using http requests with cURL from a website.

3 comments

0

Have you tried HttpService?

0

No that's not possible, explain how you can use that from a website?

0

Ah, you're looking for something that isn't related to ROBLOX Studio then?

2 answers

Hello, as @EmilyBendsSpace 's method/post would work let me get you an easier method so you can understand how to do it as i see you're just starting out, here let's start with an

localscript method:

local p = game:GetService("Players").LocalPlayer

if p.MembershipType == Enum.MembershipType.Premium then
	print(p.." Has premium")
else
	print(p.. " Doesn't have premium")
end

serverscript method:

game:GetService("Players").PlayerAdded:Connect(function(p)
	if p.MembershipType == Enum.MembershipType.Premium then
	print(p.." Has premium")
else
	print(p.. " Doesn't have premium")
	end
end)

As there's still things like MembershipType.BuildersClub, OBC, TBC they don't work cause as you know they removed that but, Enum.MembershipType.None is one of the working/useful things as well.

If you still don't know check out roblox's source for it

HERE

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