I tried this, when the player doesn't exist, it prints that the player doesn't exist, but when the player does exist, it also prints that the player does not exist, how could i fix this?
local text = script.Parent.Text
local Players = game:GetService("Players")
script.Parent.FocusLost:Connect(function(enterPressed)
if enterPressed then
if not Players:FindFirstChild(text) then
print("Player "..script.Parent.Text.." does not exist.")
return end
else
print(script.Parent.Text)
script.Parent.name.Value = script.Parent.Text
script.Parent.Visible = false
script.Parent.Parent.valueedit.Visible = true
end
end)

7 comments
And yes, i am using a TextBox.
are you using the correct case? Everything is case sensitive unless you make it more flexible
do you type the full players name
also please sne dthe output next time
There is no output, and the player's name is gotten by putting it in a textbox and saving it in a stringvalue.
alright
alright