How to add messages
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,
- In the Explorer panel, select Workspace
-
Go to Insert, then Object...
- In the window that pops up, find Message, and click OK
- In the Explorer panel, select the message you inserted
- In the Properties panel, find Text
- 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
While in Roblox Studio,
- In the Explorer panel, select Workspace.
- Open your command bar. This should be open; if it's not already open, click View -> Toolbars -> Command.
- 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:
[edit] Creating Message objects
You can use scripting to have more control over your messages.
While in Roblox Studio,
- In the Explorer panel, select Workspace
- Go to Insert, then Object...
- In the window that pops up, find Script, and click OK
- Find the script in the Explorer panel, and double-click it to open the script editor.
- Copy the following and paste it into the script:
Once you have done that, click the Close Tab
button to exit the script editor.
To run the script, press the Play
button. Be sure to save your place first!
When it's done, it will look like this:
[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.


