TextBox shows name only when entered

I’m trying to make a textbox which loads in a character when a user ID is entered, but I have to use remote events since I need to use a server to load in the character and a textbox for the player to enter. So when I made the script for some reason it only shows my name when I enter it and I don’t know why. Do you have any solution for this? (Also there’s only 1 remote event so I didn’t pick the wrong remote event)

Here’s the script:

--Local Script
script.Parent.FocusLost:Connect(function()
	local USERID1 = script.Parent.Text
	game.ReplicatedStorage.RemoteEvent:FireServer(USERID1)
end)
--Server Script
local RemoteEvent = game.ReplicatedStorage:WaitForChild('RemoteEvent')

RemoteEvent.OnServerEvent:Connect(function(USERID1)
	local model = workspace.Character1
	print(USERID1)
	--local description = game:GetService("Players"):GetHumanoidDescriptionFromUserId(USERID1)
	--model:WaitForChild("Humanoid"):ApplyDescription(description)
end)

OnServerEvent actually has 1 default parameter, which is the Player that fired it

Try this for your Server Script:

--Server Script
local RemoteEvent = game.ReplicatedStorage:WaitForChild('RemoteEvent')

RemoteEvent.OnServerEvent:Connect(function(Player, USERID1)
	local model = workspace.Character1
	print(USERID1)
	--local description = game:GetService("Players"):GetHumanoidDescriptionFromUserId(USERID1)
	--model:WaitForChild("Humanoid"):ApplyDescription(description)
end)
1 Like