How Can I Get A Player Without Their Full Username? - Scripting Support Home » How To Find Someone On Roblox Without Their Username » How Can I Get A Player Without Their Full Username? - Scripting Support Maybe your like How To Find Someone On Twitter By Phone Number How To Find Someone Social Security Number How To Find Someone You Unadded On Snapchat How To Find Someone's Grindr Account How To Find Someone's Insurance Info How can I get a player without their full username? Help and Feedback Scripting Support WinkleSociety (WinkleSociety) November 28, 2020, 6:55am 1 I am making an admin system and it successfully gets the player but I would like to set it so the admin doesn’t have to type out the full player username in order to run a command on a specific player. Nothing I’ve tried has worked yet and I have searched on the forums for anything related but nothing comes up, is there a way to do this? 2 Likes Doe_JohnRBLX (ハ・へ・マ) November 28, 2020, 6:58am 2 can you show it with image? Because i need see it sjr04 (uep) November 28, 2020, 6:59am 3 You can make your own function for this. local Players = game:GetService("Players") local function get_player(name: string): Player | nil name = name:lower() for _, player in ipairs(Players:GetPlayers()) do if name == player.Name:lower():sub(1, #name) then return player end end return nil end So what it does first is, lowercase the input to remove case sensitivty, then goes through all the players and removes case sensitivity by lowercasing the names of the players as well, and then only gets the portion of the string that is the 1st character and however long the input string is. So for example you can expect print(get_player("doe_john")) to return @Doe_JohnRBLX reliably assuming they are in the server 7 Likes WinkleSociety (WinkleSociety) November 28, 2020, 7:00am 4 Thank you, I will try implementing it now! 2 Likes WinkleSociety (WinkleSociety) November 28, 2020, 7:00am 5 I will reply with the code if @sjr04’s solution doesn’t work. 2 Likes Doe_JohnRBLX (ハ・へ・マ) November 28, 2020, 7:01am 6 ok, I’ll come if I need help. 2 Likes WinkleSociety (WinkleSociety) November 28, 2020, 7:04am 7 Would there also be a way to implement parameters into the get_player function such as ‘me’ ‘all’ ‘others’ ‘admins’ ‘nonadmins’ etc? Doe_JohnRBLX (ハ・へ・マ) November 28, 2020, 7:06am 8 Of course applicable, but a script like this HD Admin may be required. 1 Like TheeDeathCaster (TheeDeathCaster) November 28, 2020, 7:09am 9 There is a way utilizing gmatch and the string pattern [^,]+ (which I don’t 100% understand it). For example, local Targets = "plr1,plr2,admins,team-raiders" for Word in Targets:gmatch("[^,]+") do print(Word) end --[[ Output: plr1 plr2 admins team-raiders --]] Hope this helped. EDIT Decided to write out the code for proper format. if Targets == "all" then return game.Players:GetPlayers() elseif Targets == "others" then -- Code that returns other players else for Word in Targets:gmatch("[^,]+") do if Word == "me" then return {Speaker} elseif Word == "admins" then -- Code that gets admins else for _, Target in ipairs(game.Players:GetPlayers()) do if Target.Name:sub(1, #Word):lower() == Word then return {Target} end end end end end @WinkleSociety 1 Like WinkleSociety (WinkleSociety) November 28, 2020, 7:10am 10 Hm, I will try and find a way to implement it, thanks 1 Like WinkleSociety (WinkleSociety) November 28, 2020, 8:59am 11 Hello again, how would I go about implementing your solution into this code here: TheeDeathCaster (TheeDeathCaster) November 28, 2020, 7:59pm 12 WinkleSociety: how would I go about implementing your solution into this code here Simply replace the FindFirstChild bit with the GetPlayer function. ;p local player = Players:FindFirstChild(args[1]) -- to local player = get_player(args[1]) WinkleSociety (WinkleSociety) November 28, 2020, 8:34pm 13 Thanks so much, I have been so tired lately and I haven’t been able to script efficiently so thanks for the help 2 Likes Tag » How To Find Someone On Roblox Without Their Username HOW TO FIND SOMEONE ON ROBLOX THAT YOU ... - YouTube How To Find Someone That You Unfriended On Roblox ... - YouTube Finding Lost Friends With Difficult Usernames : R/roblox - Reddit Add The Ability To View The Players You Played With On A Server I Forgot My Username - Roblox Support How To Make Friends - Roblox Support Can Not Search Filtered Usernames - Website Bugs - DevForum How To Find Out What Game Someone Is Playing On Roblox Without ... Roblox: How To Find What Game Someone Is In - Alphr If You Change Your Username In Roblox, Can Someone Else ... - Quora Old Roblox Login - Road Series (2022) How To Join Someone On ROBLOX Without Being Friends Full List Of Roblox Users With A Space In Their Name