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
 

message script help!

Previous Thread :: Next Thread 
imike218 is not online. imike218
Joined: 28 Nov 2010
Total Posts: 350
22 Dec 2011 06:13 PM
i got the script made finally and it works.. to an extent.
The message comes up when the player touches the brick, but then it never goes away.

debounce = false
function onTouched(hit)
if debounce == false then
debounce = true
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "oh good survivors. right now is not the time to talk. just go ahead and got that white looking area over there."
wait(3)
msg:remove()
debounce = false
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
352ynnhoj is not online. 352ynnhoj
Joined: 21 Sep 2010
Total Posts: 1054
22 Dec 2011 06:15 PM
you have to search the player for the message not the instanced message
Report Abuse
bob354293 is not online. bob354293
Joined: 26 Oct 2008
Total Posts: 2609
22 Dec 2011 06:15 PM
you sure? because that looks correct to me :p
Report Abuse
imike218 is not online. imike218
Joined: 28 Nov 2010
Total Posts: 350
22 Dec 2011 06:16 PM
yeah it doesn't go away
Report Abuse
imike218 is not online. imike218
Joined: 28 Nov 2010
Total Posts: 350
22 Dec 2011 06:19 PM
oh wait it does work. 2nd times the charm!
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