I am making a 3D Printer using ROBLOX, and in it, I am changing the size using a script, this is the snippet:
script.Parent.Table.Size = "2, 0.4, 3"
When I go to Play Solo, the Output says
12:34:38.913 - Workspace.MS Printer.Script:6: bad argument #3 to 'Size' (Vector3 expected, got string)
I changed "Size" to "Vector3" but it still doesn't work. Oh, and to see the game, go here: http://web.roblox.com/Computer-Lab-place?id=182834153
You need to use Vector3.new()
script.Parent.Table.Size = Vector3.new(2, 0.4, 3)
You could make it a more efficient way if you wanted too. If you are making a 3D printer.
local size = Vector3.new(2,0.4,3)
You could put any number depending on what you want. If you have to use this number again in the script and you want to change it you have to go through all the numbers. But this can change it all at once.
local size = Vector3.new(2,0.4,3 script.Parent.Table.Size = size