I'm trying to get a textbox that finds a player's userid from entering their name. Script:
lua
local username = game.ReplicatedStorage.Value.Value
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
local userID = game.Players:GetUserIdFromNameAsync(username)
wait(5)
game.Workspace.R15Loader.Configuration.userId.Value = userID
end)
I keep getting this output: Players:GetUserIdFromName() failed because the user does not exist.
Before I put in local username and the remote event, where it says (username), I put ("somerandomuser") and it would load, but now it won't.

2 comments
i do game.Players.LocalPlayer.UserId and it usually works
This is a one player game, though and others aren't in the game.