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: Humanoid Health problem

Previous Thread :: Next Thread 
igeorge7159gotban is not online. igeorge7159gotban
Joined: 21 Jun 2011
Total Posts: 185
20 Apr 2014 09:40 PM
How can I make it so it says the message when the zombie dies. (Note: When the zombie dies, he gets deleted. It's in his script)

if game.Workspace:FindFirstChild("Zombie").Humanoid.Health < 1 then
msg.instance("Message",workspace)
msg.Text = "Josh on mic: Nice job killing that zombie."
wait(2)
msg:Destroy()
Report Abuse
igeorge7159gotban is not online. igeorge7159gotban
Joined: 21 Jun 2011
Total Posts: 185
20 Apr 2014 09:47 PM
6 views but no reply?
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 09:48 PM
while wait()do
if game.Workspace.Zombie.Humanoid.Health == 0 then
msg = Instance.new ("Message",game.Workspace)
msg.text = "Josh the mic: zombie is dead. nicee!"
wait(4)
msg:remove()
end


note: keep a model named "Zombie" wit humanoid in workspace always

I got pecked by TWO chicken's!
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
20 Apr 2014 09:50 PM
game.Workspace.Zombie.Humanoid.Died:connect(function()
Instance.new('Message',Workspace).Text = "Josh the mic: zombie is dead. nicee!"
wait(4)
Workspace.Message:destroy()
end)

i'm asian
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
20 Apr 2014 10:44 PM
Workspace.Zombie.Humanoid.Died:connect(function()
m = Instance.new('Message',Workspace)
m.Text = "Josh the mic: zombie is dead. nicee!"
game.Debris:AddItem(m,4)
end)
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