|
| 08 May 2014 11:54 AM |
| I would like to know how to show a GUI to the person that just killed someone and then dissappear in like 1-3 seconds... |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 May 2014 11:56 AM |
| game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() gui.Visible = true wait(3) gui.Visible = false end) |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 11:57 AM |
| not Died, 'Killed' is wat I want |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 May 2014 12:04 PM |
workspace.ChildAdded:connect(function(char) if char:FindFirstChild"Humanoid" then char.Humanoid.Died:connect(function() if char.Humanoid:FindFirstChild("creator) then char.Humanoid.creator.Value.PlayerGui.whteverthefkyouwant.Visible = true wait(3) char.Humanoid.creator.Value.PlayerGui.whteverthefkyouwant.Visible = false end end) end end) |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 12:05 PM |
| k, thnx I'll try this code, but sadly my Studio wont start up for a while now so I'll try this later... thnx |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 02:47 PM |
| thnx, it does work, but sometimes it doesn't go away from the screen, and it puts up the GUI for both the Killer and the Victim... |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 May 2014 05:36 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() sg = Instance.new("ScreenGui") tl = Instance.new("TextLabel") tl.Text = char .. " has died." --customize and stuff end) end) end) |
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
|
| 08 May 2014 05:43 PM |
gui = location; game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() gui.Visible = true wait(3) gui.Visible = false end) end) end)
|
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
|
| 08 May 2014 05:45 PM |
| Above^ It would have not been located in any Players Gui by that. |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 05:47 PM |
| as am saying guys, not for a dead person! just imagine urself for example killing someone wwen killing is actually really hard in the Game, and then a GUI pops up, and says 'Congrats Dude! u got a Kill!' so am not trying to do something if a person dies... |
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
|
| 08 May 2014 05:52 PM |
| I see. In that manner we will need the script so we can use it to make this possible. |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 05:53 PM |
| So you want the gui to appear on the killer's screen not the victim |
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
| |
|
|
| 08 May 2014 06:07 PM |
| jerem yes, and reall, I already gave u my script for this... its on top |
|
|
| Report Abuse |
|
|
|
| 08 May 2014 06:10 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=133104522 |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 May 2014 06:15 PM |
| lol got mixed up with the other Thread... |
|
|
| Report Abuse |
|
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
| |
|
|
| 10 May 2014 09:26 AM |
workspace.ChildAdded:connect(function(char) if char:FindFirstChild"Humanoid" then char.Humanoid.Died:connect(function() if char.Humanoid:FindFirstChild("creator) then char.Humanoid.creator.Value.PlayerGui.TestGui.Frame.Visible = true wait(3) char.Humanoid.creator.Value.PlayerGui.TestGui.Frame.Visible = false end end) end end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
RealLua
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 50 |
|
| |
|