HumanoidRootPart Position displayed on TextLabel

Hi everyone,

How could i make a textlabel display a player’s HumanoidRootPart position
this is my current code but it doesn’t seem to work:

while script.Disabled == false do

script.Parent.Text = Character.HumanoidRootPart.Position

end

Thanks in advance!

Try this? :face_with_monocle:

while wait() do

script.Parent.Text = Character.HumanoidRootPart.Position

end

Same thing, it doesn’t work. I get the error “Unable to assign property Text. string expected, got Vector3”

Ah.

Try wrapping the position in a tostring()


while wait() do

script.Parent.Text = tostring(Character.HumanoidRootPart.Position)

end

1 Like

This works perfectly. Thank you!

2 Likes