i want to make a script that does print when a player joins and has the same name/userid as the one in the module script but i dont know how to do that, here's the script:
local Whitelist = require(script.Parent.Whitelist)
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(plr)
if plr.Name == Whitelist.whitelist.Users then
print('Whitelisted')
else
print('Not Whitelisted')
end
end)
and here's the module script:
local whitelist = {}
whitelist.Users = {"mahid786", "GameTime_Studio", "diegodamaw", "amirgun2", "Bloxy_Cone"}
return whitelist
can someone please help me?

2 comments
thanks this works!
welcome!