|
| 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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 23 May 2012 06:08 PM |
| I think because it is that guy's tool, it will only appear for that guy. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|