Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Making Message have what print says?

Asked by 10 years ago

How do you make A message say what you print?

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

2 answers

Log in to vote
0
Answered by 10 years ago

message.Text = "hello"

0
I mean, how do you get message to say what print says without doing that, like if pirnt said ("..dadadadaowkeokokdoasdk"..workspace.part.name) PlatinumLocks 50 — 10y
Ad
Log in to vote
0
Answered by
Vividex 162
10 years ago

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")
0
Thanks! Helped a lot, Somewhat! PlatinumLocks 50 — 10y

Answer this question