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: thanks for the idea for the script

Previous Thread :: Next Thread 
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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 is not online. 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 is not online. 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
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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
TheDemonicGamer is not online. TheDemonicGamer
Joined: 13 Aug 2012
Total Posts: 30
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
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 09:46 AM
ok thanks
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 10:22 AM
but how do you make a certain amount of zombies appear in the day
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 10:45 AM
i ment spawn not appear
Report Abuse
TheDemonicGamer is not online. TheDemonicGamer
Joined: 13 Aug 2012
Total Posts: 30
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
TheDemonicGamer is not online. TheDemonicGamer
Joined: 13 Aug 2012
Total Posts: 30
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
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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 is not online. 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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Sep 2012 11:35 AM
When will people stop trying to make stupid knockoffs of MC?
Report Abuse
Soybeen is not online. 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
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 01:43 PM
what is MC
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Sep 2012 01:59 PM
Minecraft...
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 02:02 PM
ok thanks for answering
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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
TheRedAngel is not online. TheRedAngel
Joined: 17 Apr 2012
Total Posts: 471
03 Sep 2012 02:31 PM
^umg ... vampires are not zombiez cuz they are much more intelligent undead being.
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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
TheRedAngel is not online. TheRedAngel
Joined: 17 Apr 2012
Total Posts: 471
03 Sep 2012 03:08 PM
zombies never died and burned up in the sun.
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
03 Sep 2012 03:15 PM
never mind
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
03 Sep 2012 03:25 PM
The first guy who answered made a mistake. If statements need 2 equal signs...
Report Abuse
eviljammydodger is not online. eviljammydodger
Joined: 26 Mar 2012
Total Posts: 32
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
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