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

Making Message have what print says?

How do you make A message say what you print?

print("hello")
instance.new("message",game.workspace)
Message.Text = ??

2 answers

message.Text = "hello"

1 comment

0

I mean, how do you get message to say what print says without doing that, like if pirnt said ("..dadadadaowkeokokdoasdk"..workspace.part.name)

You can't, print(" ") is just a way scripters check for errors when in studio mode and looking at the output. Plus, your script wouldn't work anyways because of the Capitalization:

local m = Instance.new("Message", Workspace)
m.Text = "Hello world!"

If you wanted to get more complicated:

local m = Instance.new("Message", Workspace)
m.Text = "Hello world!"
if m.Text == "Hello world!" then
print("Hello player!") else
m.Text == "Goodbye world!"
print("Goodbye player")

1 comment

0

Thanks! Helped a lot, Somewhat!

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