How to Utilize ROBLOX Messages

< Tutorials

It is suggested that you use GUIs instead of Messages, which have replaced the Message and Hint object as a more flexible system.


Contents

[edit] Introduction

This article will explain different ways of adding messages and hints to your place. You'll find you can apply your new knowledge of Insert->Object to other things, and see loads of objects you can insert.

[edit] How to insert a message

While in Roblox Studio,

  1. In the Explorer panel, select Workspace
  2. Go to Insert, then Object...

    Studio(Menu$Insert).png

    Studio(Menu$Insert$Object).png

  3. In the window that pops up, find Message, and click OK
  4. In the Explorer panel, select the message you inserted
  5. In the Properties panel, find Text
  6. Type the text you want the message to say, and press enter

Your message should appear on the screen.

[edit] How to insert a hint

Deprecated:This item is deprecated. Do not use it for new work. Use TextLabel instead.

While in Roblox Studio,

  1. In the Explorer panel, select Workspace.
  2. Open your command bar. This should be open; if it's not already open, click View -> Toolbars -> Command.
  3. Then, in the your command bar type Instance.new("Hint", workspace)

Your hint should appear at the top of the screen, and in Workspace.

If you did everything right it should look like this: Hint.png

[edit] Creating Message objects

You can use scripting to have more control over your messages.

While in Roblox Studio,

  1. In the Explorer panel, select Workspace
  2. Go to Insert, then Object...
  3. In the window that pops up, find Script, and click OK
  4. Find the script in the Explorer panel, and double-click it to open the script editor.
  5. Copy the following and paste it into the script:
local message = Instance.new('Message', game.Workspace) -- Insert a new message in the Workspace.
message.Text = "Hello World!" -- Set the text of the message to "Hello World!".
wait(10)
message:Destroy() -- Remove the message after 10 seconds.

Once you have done that, click the Close Tab P01F15.png button to exit the script editor.

To run the script, press the Play Studio(Test$Run).png button. Be sure to save your place first!

When it's done, it will look like this: Hello World! Message

[edit] Creating Hint objects

Here is the same script as above, but for creating hints:

local hint = Instance.new('Hint', Workspace) -- Insert a new hint in the Workspace.
hint.Text = "Hello World!" -- Set the text of the hint to "Hello World!".
wait(10)
hint:Destroy() -- Remove the hint after 10 seconds.

[edit] See also