Hello,
How do I make a game where only I and selected people can join in? I also want to get the game visible in my group so I can join it easier cause I know how you can give permissions but than I can’t se my game anymore.
What do I want to create?
I want to create a script that only the usernames that I selected can join but idk how to make that?
I did make a script for it but now it is kicking all players can you help this is the code
local WhiteList = {"TurteleDJ", "GreenTxrtIe", "NotKxng"}
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
for i = 1, #WhiteList do
if WhiteList[i] == plr.Name then
print("Owner did join the game")
elseif WhiteList[i] == plr.Name == false then
plr:Kick("You are not allowed to join the game only game devs can join the game this game is in test proces")
end
end
end)
end)