I was trying to make it so that when someone typed into a text box it would change the players display name to whatever they wrote.
My code:
script.Parent.Text:GetPropertyChangedSignal()
player = game:GetSevice(“players”)
for i, player in pairs(players, GetPlayers()) do
local plr = player:WaitForChild(“Humanoid”)
plr.DisplayName = script.Parent.Text
end
end)