How do I make a script that detect player name like when the text is “R” then my name will show up
COMMUNITY QUESTION
How can I make a gui that detects player name?
1 answer
( assuming the script is in the TextLabel, also this would need to be a LocalScript )
script.Parent.Changed:Connect(function()
if script.Parent.Text = "R" then
script.Parent.Text = game.Players.LocalPlayer.Name
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Loop through the players and do if player.Name:sub(1, string.len(GUI.Value)) == GUI.Value then —show up, try something like this
Can u script it for me because I cant