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: Message Question

Previous Thread :: Next Thread 
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
23 May 2012 05:18 PM
Ok so I have a hopperbin that blows you up (lol) but it gives a warning message. The message comes up to the player who clicked and is blowing himself up. But I noticed the message does not pop up to other players. Heres the code...

--++thedestroyer115++--
function onButton1Down(mouse)
local Hum = script.Parent.Parent.Parent.Character
local Tool = script.Parent
Tool:Destroy()
msg = Instance.new("Message", game.Workspace)
msg.Text = ""..Hum.Torso.Parent.Name.." has decided to nuke himself! WATCH OUT!"
wait(2)
msg.Text = "Nuke in 5"
wait(1)
msg.Text = "Nuke in 4"
wait(1)
msg.Text = "Nuke in 3"
wait(1)
msg.Text = "Nuke in 2"
wait(1)
msg.Text = "Nuke in 1"
wait(1)
msg.Text = "NUUUUUUUUUUU!!!!!!!!!!!!!!! WE ALL GONNA DIIIIEEEEEEEEEEEE!!!!"
wait(1)
msg:Destroy()
local explo = Instance.new("Explosion")
explo.Position = Hum.Torso.Position
explo.Parent = game.Workspace
explo.BlastPressure = 90000000000000000000000000000
wait(0.5)
explo:Destroy()
end

function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
script.Parent.Selected:connect(onSelected)


Any clue?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
23 May 2012 05:21 PM
Hello..?
Anyone alive?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
23 May 2012 05:52 PM
HELP!
Report Abuse
damanofrunescape is not online. damanofrunescape
Joined: 29 Jul 2008
Total Posts: 7338
23 May 2012 05:57 PM
I'm not sure, I thought something like that would work. Then again, I haven't used Messages for a long time.

You could try using a Hint instead, as it is also less annoying.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
23 May 2012 05:57 PM
Take out the "" before ..whateveryouputhere..
it does not need them.
other than that i can not figure it out.
Report Abuse
damanofrunescape is not online. damanofrunescape
Joined: 29 Jul 2008
Total Posts: 7338
23 May 2012 06:01 PM
I would think the line...

Tool:Destroy()

Would stop the script from running, but I'm assuming you still (somehow) managed to explode since you only mentioned the messages not appearing?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
23 May 2012 06:02 PM
No. I made this unclear.

Explosion - Works
Message - Works, but only appears to the player who activated


Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
23 May 2012 06:08 PM
I think because it is that guy's tool, it will only appear for that guy.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
23 May 2012 06:09 PM
But I thought it would work for everyone because you put it in the workspace.
HEY I JUST THOUGHT OF SOMETHING.
Put all the different messages in lighting, and clone/move them into workspace 1 by 1.
It will take longer but it will probably work.
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