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: I still have no idea how to script, so

Previous Thread :: Next Thread 
3yo is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
24 Aug 2014 12:54 AM
wat river?
Report Abuse
3yo is not online. 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 is not online. 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
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