Invalid argument #3 (string expected, got Vector3)

I tried setting a part’s name to its size but I have this error. Any clue how I can fix this?
Here is my script

local size2 = game.Workspace.thepart.Size
game.Workspace.thepart.Name = size2

Try using tostring()

workspace.thepart.Name = tostring(size2)
1 Like