So i'm trying to make a game and i don't want to edit the GUI every time i edit the name of the NPC and i want to be better at scripting and this could help me script a tiny bit.
If this is what you mean, this is my attempt.
local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) local text = Instance.new("TextLabel",gui) while wait(.005) do text.Text = workspace.Change this to npcs name end