generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Could someone tell me what my mistakes are, please?

Previous Thread :: Next Thread 
tiffanycoles is not online. tiffanycoles
Joined: 25 Dec 2012
Total Posts: 623
26 Dec 2014 05:29 PM
local message = Instance.new("Message")
message.text = 'Hello World'
message.parent = game.Workspace
wait(5)
message:Remove()

It says, "text is not a valid member of message" and apparently there's a mistake on line two, too. I'm just now trying to learn how to script, and this book I got for Christmas is kind of out of date with the new studio. What do I need to do to fix it?
Report Abuse
tiffanycoles is not online. tiffanycoles
Joined: 25 Dec 2012
Total Posts: 623
26 Dec 2014 05:31 PM
bump
Report Abuse
Aalok is not online. Aalok
Joined: 20 Jun 2014
Total Posts: 1136
26 Dec 2014 05:32 PM
Remember, in scripts, capitals count.

So you would have to change parent to Parent, and text to Text.
Report Abuse
tiffanycoles is not online. tiffanycoles
Joined: 25 Dec 2012
Total Posts: 623
26 Dec 2014 05:32 PM
Ohhhhhh. Thank you!
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
26 Dec 2014 05:33 PM
properties are case sensitive

.text should be .Text
.parent should be .Parent
Report Abuse
Aalok is not online. Aalok
Joined: 20 Jun 2014
Total Posts: 1136
26 Dec 2014 05:34 PM
Also, you are using more deprecated (old) methods. Pretty soon these ways will break your script, so use this:

local message = Instance.new("Message", workspace) --workspace = game.Workspace; a local variable
message.Text = 'Hello World'
wait(5)
message:Destroy();
Report Abuse
tiffanycoles is not online. tiffanycoles
Joined: 25 Dec 2012
Total Posts: 623
26 Dec 2014 05:49 PM
^ Ohhhhh. Thanks! XD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image