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
|
  |
| 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
|
  |
| Joined: 01 Jul 2009 |
| Total Posts: 133 |
|
| |
|
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
|
  |
| Joined: 01 Jul 2009 |
| Total Posts: 133 |
|
|
| 17 Sep 2014 02:48 PM |
| Sooo. You're messing with me? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 17 Sep 2014 03:08 PM |
| didn't define textbutton, ugh |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|