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 » Scripters
Home Search
 

Re: Died Event - Glitch?

Previous Thread :: Next Thread 
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 06:34 AM
I haven't found a glitch with it, but I have a feeling it *might* do this: has anyone ever heard of it firing more than once for one person?
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 06:40 AM
[ Content Deleted ]
Report Abuse
Anaminus is not online. Anaminus
Top 100 Poster
Joined: 29 Nov 2006
Total Posts: 5945
09 Jul 2011 06:40 AM
What causes you to have that feeling?
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
09 Jul 2011 06:40 AM
I have never heard of it.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 06:40 AM
Darn. That will be really, really annoying for my script.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 06:41 AM
[ Content Deleted ]
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 06:42 AM
@Anaminus - That glitch with the darkheart where someone gets more than one death. I need it to work for a sword script I am making.

reddeaths = 0
bluedeaths = 0

redDied()
reddeaths = reddeaths + 1
end

blueDied()
bluedeaths = bluedeaths + 1
end

alltheplayersinred.Died:connect(redDied)
alltheplayersinblue.Died:connect(blueDied)

repeat wait() until reddeaths == 3 or bluedeaths == 3
--all of one team have died (3 in a team)
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
09 Jul 2011 06:44 AM
Make your own :)

function ConnectDiedEvent(PlayerHum,func)

local Player = PlayerHum
local PlyDB = false
local func = func

Player.Died:connect(function()
if PlyDB == false then
PlyDB = false
func(game.Players:GetPlayerFromCharacter(Player.Parent))
coroutine.resume(coroutine.create(function()
wait(6)--Replace with respawn time
PlyDB = true
end))
end
end)

function Died(Ply)
print(Ply.Name.." has died. :(")
end

ConnectDiedEvent(game.Players.pighead10,Died)
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 06:48 AM
"if PlyDB == false then PlyDB = false" lol?

I'll make my own one if it ends up glitching.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
09 Jul 2011 07:04 AM
You can't use CharacterRemoving?
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 07:19 AM
No, because that doesn't fire when someone dies.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
09 Jul 2011 07:22 AM
It does...

The character still exists when the event is called..
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 07:29 AM
[ Content Deleted ]
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 07:30 AM
[ Content Deleted ]
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
09 Jul 2011 07:34 AM
The event CharacterRemoving is called before the character stops existing.

And it DOES exist.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
09 Jul 2011 07:35 AM
[ Content Deleted ]
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
09 Jul 2011 07:38 AM
Ever wondered why there is a CharacterAdded event and a CharacterRemoving one?

One calls before the character is removed, the other calls after the new one is added.

That's the reason there is a character argument to both.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 07:40 AM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
09 Jul 2011 07:41 AM
[ Content Deleted ]
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 07:45 AM
[ Content Deleted ]
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
09 Jul 2011 08:49 AM
It's too delayed.
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
09 Jul 2011 10:01 AM
Figure out what would cause .Died to be fired more than once, and have your script take note..?
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
09 Jul 2011 10:06 AM
.Died fayls to. Sometimes it fires 3 times, other times it doesn't fire at all. I found that out while making a zombie game.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
09 Jul 2011 10:46 AM
local already = {}
function onDied(player)
if already[player] then
return
end

already[player] = true

< as before >
end

player.Character.Humanoid.Died:connect(function() onDied(player) end)
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
09 Jul 2011 11:05 AM
CharacterRemoving also fires when the player leaves because the player leaving removes the character. Why would you even suggest CharacterRemoving?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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