Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

how do you make a script that makes a gui that says a model's name?

Asked by 5 years ago

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.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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
Ad

Answer this question