Here's the code I think is the problem: healthtext.Text = "Health: "..tostring(health.Value).." / "..tostring(script.Parent.MaxHealth.Value)

6 comments

0

That likely is not the problem, please be sure to check the output window and check the exact line and script the error occurred.

0

It just says unable to cast string that's all it says

0

Possibly because you said health.Value instead of script.Parent.Health.Value?

0

You'd need the full code to see the problem.

0

try script.Parent.Health and script.Parent.MaxHealth (without .Value at the end)

0

can you explain your code more, like what is the code supposed to do and show us all of it.