TextLabel update for HumanoidRootPart's custom value script does not work

Hello, i’ve recently come to a issue i was fumbling with for the past couple of hours. Running the code through ChatGPT yielded no results so i turned to you guys here. Anyways here is the following code with the console error.


image
Will anybody be so kind and explain why the console is still throwing this error or am i on my own to fix it here? Thanks.

nevermind, it was not a localscript, so that’s why it did not work.