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 » Scripting Helpers
Home Search
 

Re: What is wrong with this script message block?

Previous Thread :: Next Thread 
Rikemaster is not online. Rikemaster
Joined: 18 Sep 2010
Total Posts: 51
15 Jan 2012 12:01 PM
function onTouched(hit)
msg.Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "deadbattler he is a not a Nub"
wait(3)
msg:remove()
wait(1)
msg.Text = "Joking he is an epicz Nubz, I like him."
wait(3)
msg.remove()
msg.Text = "Or do I?"
wait(2)
msg:remove()
end

Script.Parent.Touched:connect(onTouched)
Report Abuse
maurissquad is not online. maurissquad
Joined: 17 Nov 2011
Total Posts: 191
15 Jan 2012 12:07 PM
function onTouched(hit)
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "deadbattler he is a not a Nub"
wait(3)
msg.Text = ""
wait(1)
msg.Text = "Joking he is an epicz Nubz, I like him."
wait(3)
msg.Text = ""
msg.Text = "Or do I?"
wait(2)
msg:remove()
end

Script.Parent.Touched:connect(onTouched)
Report Abuse
maurissquad is not online. maurissquad
Joined: 17 Nov 2011
Total Posts: 191
15 Jan 2012 12:08 PM
Also, you might want to make chance the msg definition to local msg if you only want one person to see it.
Report Abuse
Rikemaster is not online. Rikemaster
Joined: 18 Sep 2010
Total Posts: 51
15 Jan 2012 01:58 PM
what does the msg.Text = "" mean?
Report Abuse
slayer219 is not online. slayer219
Joined: 15 Nov 2008
Total Posts: 3445
15 Jan 2012 01:59 PM
function onTouched(hit)
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "deadbattler he is a not a Nub"
wait(3)
msg.Text = "Joking he is an epicz Nubz, I like him."
wait(3)
msg.Text = "Or do I?"
wait(2)
msg:Destroy()
end

script.Parent.Touched:connect(onTouched)
Report Abuse
maurissquad is not online. maurissquad
Joined: 17 Nov 2011
Total Posts: 191
15 Jan 2012 06:10 PM
@RikeMasterr, the empty quotes make the msg blank.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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