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: How Do I Make A Script Wait?

Previous Thread :: Next Thread 
lolswagXDXD is not online. lolswagXDXD
Joined: 08 Aug 2015
Total Posts: 48
12 Sep 2016 08:47 PM
how do i make it wait for the humanoids health to be less then 1? the script doesn't wait:

if
game.workspace.Zombie.Humanoid.Heath == > 1
then
print ("TheScriptIsWorking:D")
end
Report Abuse
imtellingmommy is not online. imtellingmommy
Joined: 10 Mar 2013
Total Posts: 817
12 Sep 2016 08:48 PM
repeat
wait()
until
game.workspace.Zombie.Humanoid.Health => 1
print ("TheScriptIsWorking:D")
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
12 Sep 2016 08:50 PM
game.workspace.Zombie.Humanoid.Changed:connect(function(property)
if property == "Health" and game.workspace.Zombie.Humanoid.Health >= 1 then
print("TheScriptIsWorking:D")
end
end)

^efficient
Report Abuse
IndustrialOrc is not online. IndustrialOrc
Joined: 10 Sep 2016
Total Posts: 327
12 Sep 2016 08:51 PM
@Green

Nobody cares on ROBLOX, it doesn't matter.
Leave.
Report Abuse
lolswagXDXD is not online. lolswagXDXD
Joined: 08 Aug 2015
Total Posts: 48
12 Sep 2016 08:54 PM
xD nah
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
12 Sep 2016 08:56 PM
i helped him and you are killing me, gg.
Report Abuse
Aalok is not online. Aalok
Joined: 20 Jun 2014
Total Posts: 1136
12 Sep 2016 09:05 PM
game.wait(time)
game.workspace.Zombie.Humanoid.Changed:connect(function(property)
if property == "Health" and game.workspace.Zombie.Humanoid.Health >= 1 then
print("TheScriptIsWorking:D")
end
end)

^ works add a something thingy


dude its ok its just a social experiment ( gone wrong ) (atr exposed)
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