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: How Would I?

Previous Thread :: Next Thread 
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
08 May 2013 10:56 PM
I'd like to have a script that is either in the playergui or workspace, that can start a function when someone dies.
How would I do this?
Report Abuse
ArcticGenesis is not online. ArcticGenesis
Joined: 22 Apr 2013
Total Posts: 76
08 May 2013 10:59 PM
Im trying to remember if you would have a script that constantly refresh in workspace and gather all the players and if one of thems health is below zero it clones the script into them.

(ง'̀-'́)ง
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
08 May 2013 11:01 PM
I honestly don't know, thats why I am asking.

I just need the outline, then I can make it check if they were the assassin or not and remove 1 from the alive amount or turn the isasalive value to false.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 May 2013 11:02 PM
Put this in startergui as a LocalScript.

wait(1/30)
local Player = Game.Players.LocalPlayer

repeat wait(1/30) until Player.Character
Player.Character.Humanoid.Died:connect(function()
--stuff
end)
Report Abuse
BluesteelFlame is not online. BluesteelFlame
Joined: 26 Apr 2013
Total Posts: 1202
08 May 2013 11:03 PM
Thank you!

The help in the forum is outstanding!
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