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: Show GUI on Kill

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
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 is not online. 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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
08 May 2014 11:57 AM
not Died, 'Killed' is wat I want
Report Abuse
wazap is not online. 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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
08 May 2014 05:33 PM
BUMp...
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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 is not online. 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 is not online. 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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
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 is not online. 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
jeremymars is not online. jeremymars
Joined: 07 Oct 2011
Total Posts: 132
08 May 2014 05:53 PM
So you want the gui to appear on the killer's screen not the victim
Report Abuse
RealLua is not online. RealLua
Joined: 19 Jul 2013
Total Posts: 50
08 May 2014 05:57 PM
Yes.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
08 May 2014 06:07 PM
jerem yes, and reall, I already gave u my script for this... its on top
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
08 May 2014 06:10 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=133104522
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
08 May 2014 06:10 PM
No its not.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
08 May 2014 06:15 PM
lol got mixed up with the other Thread...
Report Abuse
RealLua is not online. RealLua
Joined: 19 Jul 2013
Total Posts: 50
09 May 2014 06:42 PM
No script was provided.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
13 May 2014 04:11 PM
BUMP!.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
13 May 2014 04:12 PM
...
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
16 May 2014 04:31 PM
BUMP...
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 May 2014 06:03 PM
Bump!!! :/
Report Abuse
RealLua is not online. RealLua
Joined: 19 Jul 2013
Total Posts: 50
18 May 2014 03:18 AM
Will work on tomorrow.
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