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)
else
print("player does not have premium: ", player.Name)
end
end
game:GetService("Players").PlayerAdded:Connect(onPlayerAdded)
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.