I'm trying to make a GUI to show the selected Part position and size, but now, when I try to update the respective labels, I can't because an error occurs.
Error: Text cannot be assigned to
Code:
PartInfo.NameBox.Text = part.Name
PartInfo.Position.Text = "Position: "..(part.Position.X)..", "..(part.Position.Y)..", "..(part.Position.Z)
PartInfo.Size.Text = "Size: "..(part.Size.X)..", "..(part.Size.Y)..", "..(part.Size.Z)
Edit: forgot to tell that part is equal to Mouse.Target

2 comments
Are you sure the error is coming from this section of code?
Yes I am. The error is exactly "Text cannot be assigned to"