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

Has the Instance "Message" been removed from Roblox?

Asked by
KenzaXI 166
6 years ago

Hi, I haven't opened studio in over an year and just has the urge on doing some code :P I decided to check to see what I remember by starting with the basics, creating a message. Unfortunately I cannot find the Instance anywhere, which leads me to this Question, Has it been removed completely or has the name been changed and I'm too blind to notice it?

Thanks for any and all the help.

3 answers

Log in to vote
0
Answered by 6 years ago

Hiya.

Messages work perfectly fine! I recommend using the newer Instance.new method however, to ensure your scripts are as up-to-date as possible.

A simple example to creating a message object:

local msg = Instance.new("Message")  --Assigning a variable is recommended now
msg.Parent = game.Workspace --Setting the parent of the message AFTER creating the object
msg.Text = "Hello world!" --Changing the text so it actually shows, if it has no text, nothing will show up
0
Thanks, had to restart studio for it show. KenzaXI 166 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

I believe it has not been removed and I am not sure why you cant see it. Try using a hint

h = Instance.new("Hint", game.Workspace)
h.Text = "Hi"
0
This way of creating new instances is no longer recommended! Please make sure you try using the newer method rather than this. It'll help you on the long run User#20989 0 — 6y
Log in to vote
0
Answered by
Nickelz 37
6 years ago

The Roblox wiki says the instance "Message" is deprecated and it is not recommended for use with new work, but it still works. try this:

msg = Instance.new("Message")

msg.Parent = game.Workspace

msg.Text = "Text Here"

wait(2)

msg:remove()

Answer this question