So, I have a paid access game, but I want to give some beta testers, friends and youtubers a link/rank so they don´t have to spend the money, How do I do that?
I know that by giving them permission to edit the game It will work, buy I don’t want to give random youtubers that permission.
local GroupID = 12345
local RankID = 255
game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(GroupID) == RankID then
return
else
Player:Kick()
end
end)
Create a gamepass with the cost you want you game to be for playing
Don’t use the roblox default paid access. Insert a script on serverScriptService with this:
local Players = game:GetService("Players")
local FreeFor = {
"ID of the person who has access1",
"ID of the person who has access2", -- do this with all the people you want to go for free
"ID of the person who has access3",
}
Players.PlayerAdded:Connect(function(Player)
if table.find(FreeFor, tostring(Player.UserId)) then
print("you have access")
else
--Offer the player to buy the gamepass
end
end)
I would recommend @CZXPEK’s group ranking way because players can simply buy these gamepasses from the Store on the Game page. Besides, if you want the game to be open for testers only, people with the gamepass/who bought the gamepass could be mad.
Sadly you can’t just grant access to a paid game with the current roblox’s system, but you can probably use these scripts that people sent to whitelist certain players who bought a gamepass etc.