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

Overhead Gui Remains Unchanged - Help?

Asked by 6 years ago

Hello, everyone.

I'm trying to create a custom rigged humanoid that displays the Name and Level value of the NPC above it's appearance. However, the Text has remain unchanged whenever i test it in Studio and in server. Here is the Local Script that i have inside the TextLabel. (TextLabel is named "Desc" btw.)

local class = script.Parent.Parent.Parent.Humanoid.Name
local level = script.Parent.Parent.Parent.Level

repeat wait()
    script.Parent.Parent.Desc.Text = class .. "  Lv. " ..level.Value
until
    script.Parent.Parent.Desc.Text == class .. "  Lv. " ..level.Value

level.Changed:connect(function()
    script.Parent.Parent.Desc.Text = class .. "  Lv. " ..level.Value
end)

All suggestions and recommendations are welcome! Thank you, for your time.

  • sparkevin
0
Just for clarifications, is script.Parent.Parent a ScreenGui or a Surface gui? If it is a surface gui, I would recommend using a server script if you want anyone else besides you to see it theking48989987 2147 — 6y
0
Billboard gui. The line is used to reach the TextLabel, "Desc". sparkevin 36 — 6y
1
yea, try using a server script for that theking48989987 2147 — 6y
0
your repeat loop is pointless Gey4Jesus69 2705 — 6y
0
I would recommend double checking that the script runs at all - put in a print statement at the beginning or end of the script. If nothing appears in the Output, you might have placed the script in a place where it isn't run (ex Scripts don't run in client-only places and LocalScripts don't run in server-only places and in most places in the workspace). chess123mate 5873 — 6y

Answer this question