3rdblox
|
  |
| Joined: 09 Dec 2012 |
| Total Posts: 4741 |
|
|
| 29 Sep 2013 05:17 PM |
| When someone dies, I want to make a GUI appear on their screen. Say I have a GUI called "GUI" in Lighting, how can I make it appear on the dead person's screen then go away after 2 seconds? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 05:23 PM |
p = game.Player.LocalPlayer c = p.Character function movegui() x = game.Lighting.Gui:clone() x.Parent = p.PlayerGui wait(2) x:destroy() end c.Humanoid.Died:connect(movegui)
That might help, but I am not the best scripter in the world. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 05:23 PM |
| Put in a local script in the starterpack |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 05:26 PM |
script in workspace:
local DeathGui = game.Lighting.GUI game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function(lol) DeathGui:clone().Parent = player.PlayerGui end) end) end)
~rekt get |
|
|
| Report Abuse |
|
|
3rdblox
|
  |
| Joined: 09 Dec 2012 |
| Total Posts: 4741 |
|
| |
|
| |
|