Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Print won't print the name of an Instance?

x = game.Workspace.Testings.Mesh
local message = Instance.new('Message', game.Workspace) -- Insert a new message in the Workspace.
message.Text = (x) -- Set the text of the message to "Hello World!".
wait(10)
message:Destroy() -- Remove the message after 10 seconds.

1 comment

0

Use x.Name or tostring(x), don't bother with brackets.

1 answer

✓ Accepted answer

As TheDeadlyPanther said, you can either change it to "message.Text = x.Name" or "message.Text = tostring(x)"

If I have helped or answered your question please remember to accept the answer, and if not then please message me or comment what I could have done better!

This discussion is preserved as it was. New answers, comments, and votes are closed.