How to add messages

From ROBLOX Wiki
Revision as of 14:45, 10 December 2024 by PRG (talk | contribs) (Created page with "{{CatUp|Tutorials}} {{ImproperArchive}} == Introduction == This article will explain different ways of adding messages and hints to your place. == 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}} ::{{Studio|Menu$Insert$Object}} :3. In the window that pops up,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This page was not properly archived from the ROBLOX Wiki, as a result this page has missing images/data.

Introduction

This article will explain different ways of adding messages and hints to your place.

How to Insert a Message

While in Roblox Studio,

1. In the Explorer panel, select Workspace
2. Go to Insert, then Object...
Template:Studio
Template:Studio
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.

How to Insert a Hint

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 Hint, and click OK
  4. In the Explorer panel, select the hint you inserted
  5. In the Properties panel, find Text
  6. Type the text you want the hint to say, and press enter.

Your message should appear at the bottom of the screen.

Scripting and Messages

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 m = Instance.new("Message")	-- inserts a new message
m.Parent = game.Workspace		-- put the message in the workspace
m.Text = "Hello World!" 		-- change "Hello World!" to whatever you like
wait(10)				-- waits 10 seconds
m:Remove() 				-- removes the message

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

To run the script, press the Play Template:Studio button. Be sure to save your place first!

Hints

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

local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Hello World!"
wait(10)
h:Remove()

See Also