Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Script doesn't recognize usernames if in all lowercase?

Asked by 3 days ago
Edited 3 days ago

Hello! I have a whitelist script for my game. The problem is, it doesn't work unless the username is written with every capital letter in the username. For example, it wouldn't work if somebody's username is "RobloxGirl" and I put "robloxgirl" in the script. It just kicks the player if I don't put the name 100% correct. This is a pain because I have to type about 200 names for 2 whitelists, and it would suck to have to get everyone's exact username. I was wondering if there is any way to make it so that it doesn't kick them if their username isn't 100% including all the capitals, etc. any help would be greatly appreciated!

local usernames = {
     "trashijordi","MayaClouds",
    "iamsweeetgirl98","crossfithigh",
    "Edicista","tyleraiin",
    "alexiscorner","brettloaf",
    "aidenwhenE","breecause",
    "BellaLuxury","Aedificate",
    "marziqaa","LostCyborg008",
    "GrassRod123","Mia_Boo05",
}
game.Players.PlayerAdded:Connect(function(plr) 
    if not table.find(usernames, plr.Name) then 
        plr:Kick("Player not on the 1st reservation list")
    end
end)
0
What if you just used UserID (they can change their name)? Vid_eo 106 — 3d
0
it would be the same as just going to their profiles and copying their name basically LiLFriks 35 — 3d

1 answer

Log in to vote
1
Answered by 3 days ago
Edited 3 days ago

you can make every letter in a string lowercase by using string.lower(string) hope this helped! tell me there are any errors

0
thats not what im trying to do though? LiLFriks 35 — 3d
0
what are u trying to do? botw_legend 424 — 3d
0
im saying u can use this to make the username be lowercase so u don't have to type in the upper case letters botw_legend 424 — 3d
0
Well It seems like Legend Answered your question...! Tizzel40 225 — 3d
Ad

Answer this question