Scripting Basics 4 Newbs

Your not really a noob. But this tutorial will help you out. We are going to start out with learning how to make a message appear on the screen. In roblox studio, open up a new document, you dont have to build annything on it. Click Insert>Object>Script. (Make sure you dont click local script) The script should look like this:

print(“Hello world!”)

——————–

Now change Hello World to Preparing to display message.

Now add the following script:

———————–

m = Instance.new(“Message”)
 m.Parent = game.Workspace
 m.Text = “I am a message! I will delete in 3 seconds!”
 wait(3)
 m:remove()

wait(2)

print(“Message displayed Sucsessfully”)

——————–

You can also display a flashing message, to catch peoples attention better.

——————–

print(“Preparing to display message.”)

m = Instance.new(“Message”)
 m.Parent = game.Workspace
 m.Text = “I am a flashing message!”
 wait(0.5)
 m:remove()

wait(0.5)

m = Instance.new(“Message”)
 m.Parent = game.Workspace
 m.Text = “I am a flashing message!”
 wait(0.5)
 m:remove()

wait(0.5)

m = Instance.new(“Message”)
 m.Parent = game.Workspace
 m.Text = “I am a flashing message!”
 wait(0.5)
 m:remove()

wait(0.5)

m = Instance.new(“Message”)
 m.Parent = game.Workspace
 m.Text = “I am a flashing message!”
 wait(0.5)
 m:remove()

wait(0.5)

——————

HOW THIS SCRIPT WORKS!

the first line,  tells it to create a new message called m. It then tells the game where to put the message, and the message text. Than it uses the wait function to wait for A while before the message erases. Thats about it.

A COOL WAY TO USE THIS SCRIPT

In a script builder, you can use it to advertise stuff, like clothes you are selling, or your new place!

Thanks for using Roblox tutorials.

http://www.roblox.com/ if you havnt yet tried the game or let alone you have no clue what it is, go here. __^

Advertisements

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: