I have made a script which shows wether the player playing the game is premium or not. The only thing I cant figure out is how do I make sure the script is working properly without needing to purchase Roblox Premium. Any help is appriciated!
well, the Players service has a boolean to check the player’s membership type
local function onPlayerAdded(player)
if player.MembershipType == Enum.MembershipType.Premium then
print("player has premium: ", player.Name)
print("player does not have premium: ", player.Name)
Just reverse the conditions and test it with that.
I’m not actually sure if player emulation actually gives you the option for premium but thats something that you could try
They know this, they just want to test the premium side of logic.
just get someone who has premium to test the game
Way harder than just adding “not” to the premium condition.
Normally I would just do this so that the premium condition evaluates to true on you only.
if plr.MembershipType == Enum.MembershipType.Premium or plr.Name == 'your_name' then
Then, once you’ve tested the logic in this code block works, you would go back to your original thing without the “or plr.Name == ‘your_name’” in order to test that the regular non-premium condition works.
Hope this helped!
It worked, thanks for the help!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.