|
| 03 Sep 2012 04:33 AM |
| how can i make zombies spawn at night(on the very outside of the map then go to where you are) and then when it is day they die(but not too many) |
|
|
| Report Abuse |
|
|
im2awsm
|
  |
| Joined: 25 Aug 2010 |
| Total Posts: 2295 |
|
|
| 03 Sep 2012 05:50 AM |
probably something along the lines of:
if game.Lighting.TimeOfDay = (Time of night, for example) 24:00:00 script.Parent.Humanoid/Zombie.Health = 0
This probably has LOTS of errors in it.. but its something. |
|
|
| Report Abuse |
|
|
im2awsm
|
  |
| Joined: 25 Aug 2010 |
| Total Posts: 2295 |
|
|
| 03 Sep 2012 05:51 AM |
| Youre going to probably have some scripting knowledge to do it. Not just some guy looking for scripts. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 06:10 AM |
| ok thanks i think i know how to make a script of how to make zombies appear at night now so i will try using the idea you just said but of course i will adjust it a bit.but how do you make them die when it is day but so they dissapear so you dont get hurt by touching there corpse |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 09:37 AM |
the automatic disappearing when dead should be part of the zombie's scripts. Try this out for the dying in the day (I am making it a slow death with burning)
while true do wait(5) local time = game.Lighting:GetMinutesAfterMidnight() if time >= 480 and time <= 900 then Burning() end end
Function Burning() local maxhealth = script.Parent.MaxHealth local health = script.Parent.Health local damage = maxhealth / 10 ft = Instance.new("Fire") fh = Instance.new("Fire") ft.Parent = script.Parent.Parent.Torso fh.Parent = script.Parent.Parent.Head for i = 1,20 do -- 20 instead of 10 to make sure the zombie dies health = health - damage wait(1) end end
script.Parent.Died:connect(function() wait(10) script.Parent.Parent:Remove() end)
this should check every 5 seconds if it is day time (I set it from 8:00 AM to 3:00 PM) and if it is day time then it will create fires in the head and torso of the zombie and make them take damage so that they die in 10 seconds. You must place this script in the Humanoid of the zombie. and to be kind I even added a disappear after death in this script because it sounded like you didn't have one. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Sep 2012 10:22 AM |
but how do you make a certain amount of zombies appear in the day
|
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Sep 2012 11:13 AM |
| what do you mean exactly? like make it a rare chance that a zombie will spawn during the day? and that zombie is immune to the sun? or that there is a chance that the zombie won't burn during the day? |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 11:15 AM |
| I know I would be able to script in the chance for them to not burn, however it would be a bit more difficult to set it so there is a small chance of them spawning during the day. More or less depending on how you have the spawning system set up. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 11:29 AM |
| i mean for the zombies to not be around in the day and to spawn only at night |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 03 Sep 2012 11:31 AM |
I smell math.random here.
Are the zombie spawn positions set, or does a script copy the zombie model from the Lighting (or wherever) and place it at a certain position? |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 11:35 AM |
| When will people stop trying to make stupid knockoffs of MC? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 03 Sep 2012 11:37 AM |
I think the concept of zombies burning in daylight was around much longer than MC was.
Dunno though. I could have watched every zombie movie wrong.
But probably not. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 03 Sep 2012 02:06 PM |
| the idea of thing burning in the day and living in the night was way before mine craft not just zombies but vampires |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 02:31 PM |
| ^umg ... vampires are not zombiez cuz they are much more intelligent undead being. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 02:40 PM |
| i didnt say vampires are zombies.i said out of all the ideas of things dying in the day and living in the night mine craft was not the first but vampires and zombies were |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2012 03:08 PM |
| zombies never died and burned up in the sun. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Sep 2012 03:25 PM |
| The first guy who answered made a mistake. If statements need 2 equal signs... |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 11:46 AM |
can any one play my game to see if i should put zombies in it. It is called do what you whant to |
|
|
| Report Abuse |
|
|