Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make a gui that detects player name?

How do I make a script that detect player name like when the text is “R” then my name will show up

2 comments

0

Loop through the players and do if player.Name:sub(1, string.len(GUI.Value)) == GUI.Value then —show up, try something like this

0

Can u script it for me because I cant

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.