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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Death message not working

Previous Thread :: Next Thread 
medbot is not online. medbot
Joined: 01 Jul 2009
Total Posts: 133
17 Sep 2014 02:38 PM
I'm trying to make a gui image or text pop up when I die but its not working. I put a ScreenGui in StarterGui and put a local script and a TextButton in it. Then set the Text transperancy to 1. For the localscript I put


if Character.Health>0 then TextButton.TextTransperancy=0

end


This SHOULD make the text appear after you die but nothing happened. How do i fix this?
Report Abuse
iC7G is not online. iC7G
Joined: 30 Jan 2013
Total Posts: 5377
17 Sep 2014 02:41 PM
:|

localscript in startergui

local player = game:GetService("Players").LocalPlayer

player.CharacterAdded:connect(function()
player.Character.Humanoid.Died:connect(function()
textbutton.TextTransparency = 0
end)
end)

VULNERITE YA im vulnerite AKA keith and im banned
Report Abuse
medbot is not online. medbot
Joined: 01 Jul 2009
Total Posts: 133
17 Sep 2014 02:46 PM
Didn't work...
Report Abuse
iC7G is not online. iC7G
Joined: 30 Jan 2013
Total Posts: 5377
17 Sep 2014 02:46 PM
ofc it didnt its basially pseudocode

VULNERITE YA im vulnerite AKA keith and im banned
Report Abuse
medbot is not online. medbot
Joined: 01 Jul 2009
Total Posts: 133
17 Sep 2014 02:48 PM
Sooo. You're messing with me?
Report Abuse
iC7G is not online. iC7G
Joined: 30 Jan 2013
Total Posts: 5377
17 Sep 2014 02:49 PM
facedesk
pseudocode.


VULNERITE YA im vulnerite AKA keith and im banned
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
17 Sep 2014 02:53 PM
in a localscript in the TextButton:

wait()
Game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
script.Parent.Transparentcy = 0
end)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Sep 2014 03:08 PM
didn't define textbutton, ugh
Report Abuse
medbot is not online. medbot
Joined: 01 Jul 2009
Total Posts: 133
17 Sep 2014 05:54 PM
Works great except replace Parent.Transperantcy with Parent.TextTransperancy
Report Abuse
Enzo01234 is not online. Enzo01234
Joined: 24 Mar 2011
Total Posts: 6131
17 Sep 2014 06:01 PM
You didn't define character, you didn't define textbutton.

[-★-] Our Unit shall rise again |> www.roblox.com/My/Groups.aspx?gid=869728 ]
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