local players = {} --insert names of allowed players
game.Players.PlayerAdded:Connect(function(plr)
if not table.find(players, plr.Name) then
plr:Kick("Restricted access")
end
end)
local players = {} --insert names of allowed players
game.Players.PlayerAdded:Connect(function(plr)
if not table.find(players, plr.UserID) then
plr:Kick("Restricted access")
end
end)
a whitelist would be the best but there is another way that I used and it consists in creating a white box where the player would spawn and cannot use the game, yes i was stupid, yes i still use it
This. Make it a group game so that it shows up on the group games list, but change its privacy level so that they cannot actually click the Play button and play the game.
Mind that you, the creator, might be allowed to play the game regardless of these settings.
(I do not own a group, so I don’t know the specifics of how it’s done)