how can i get users from a module script and make it print if the user is the correct user?
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:
01 | local Whitelist = require(script.Parent.Whitelist) |
02 | local player = game:GetService( "Players" ) |
04 | player.PlayerAdded:Connect( function (plr) |
05 | if plr.Name = = Whitelist.whitelist.Users then |
08 | print ( 'Not Whitelisted' ) |
and here's the module script:
3 | whitelist.Users = { "mahid786" , "GameTime_Studio" , "diegodamaw" , "amirgun2" , "Bloxy_Cone" } |
can someone please help me?