3yo
|
  |
| Joined: 30 Jun 2014 |
| Total Posts: 374 |
|
|
| 24 Aug 2014 12:45 AM |
I am asking you all for help.
How do I make an advanced object, for example a "Message" object in a part I have called "River", how do I make it so that when the player dies, it displays a message and then removes it after 3 seconds? Thanks.
i'm a spooky ghost |
|
|
| Report Abuse |
|
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 24 Aug 2014 12:48 AM |
| I just don't see what does that message inside a lonely river has to do with your script, but anyways, you use Died() event: http://wiki.roblox.com/index.php?title=Died_(Event) |
|
|
| Report Abuse |
|
|
Funse
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 7887 |
|
|
| 24 Aug 2014 12:48 AM |
game.Players.PlayerAdded:connect(function(nub) repeat wait() until nub.Character.Humanoid nub.Character.Humanoid.Died:connect(function() m = Instance.new("Message",nub.PlayerGui) m.Text = "lol wat" wait(3) m:Destroy() end) end) |
|
|
| Report Abuse |
|
|
3yo
|
  |
| Joined: 30 Jun 2014 |
| Total Posts: 374 |
|
|
| 24 Aug 2014 12:49 AM |
It's supposed to display something after you die, because you were PURPOSELY trying to jump off the edge of the map. Also, I already know about the "died" event, but how do I make the message display when using said event and then destroying it after 3 seconds?
I know Destroy() would work, right? Or would it only work once?
i'm a spooky ghost |
|
|
| Report Abuse |
|
|
3yo
|
  |
| Joined: 30 Jun 2014 |
| Total Posts: 374 |
|
|
| 24 Aug 2014 12:51 AM |
Thanks, funse, but will that work for every player who touches the river?
i'm a spooky ghost |
|
|
| Report Abuse |
|
|
Funse
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 7887 |
|
| |
|
3yo
|
  |
| Joined: 30 Jun 2014 |
| Total Posts: 374 |
|
|
| 24 Aug 2014 12:56 AM |
The river kills you, 1. 2, I want it to work every time.
i'm a spooky ghost |
|
|
| Report Abuse |
|
|
3yo
|
  |
| Joined: 30 Jun 2014 |
| Total Posts: 374 |
|
|
| 24 Aug 2014 01:27 AM |
I want it to work every time.
i'm a spooky ghost |
|
|
| Report Abuse |
|
|