I have this script that kicks a player but it doesn't kick?
local gamepass = 0 -- Gamepass ID here
game.Players.PlayerAdded:connect(function(plr)
if game:GetService('GamePassService'):PlayerHasPass(plr,gamepass) then
elseif plr.UserId == 8021038 then
elseif plr.UserId == 161916404 then
else
plr:Kick('No access.')
end
end)

2 comments
The only error is this 'Something unexpectedly tried to set the parent of Player1 to NULL while trying to set the parent of Player1. Current parent is Players.'
maybe add a wait at the start