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: Zombie Round Script Help...

Previous Thread :: Next Thread 
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 03:46 PM
So if I was to make a Zombie round script, and I want the players to kill off the zombies before proceeding to the next round, would I do it like this?
inter = 3
local h = Instance.new("Hint",game.Workspace)
h.Text = "Round: 1"
wait(inter)
game.Lighting.Zombie1:clone().Parent = game.Workspace
if game.Workspace.Zombie1 = false then
wait(inter)
h.Text = "Round: 2"
and so on. Is that how I would do it?
Report Abuse
HellishKid is not online. HellishKid
Joined: 22 Jul 2012
Total Posts: 170
07 Aug 2012 03:47 PM
WHER R UR ENDS?!
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
07 Aug 2012 03:47 PM
Sadly not , would be grossly inefficient and could easily break.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 03:47 PM
instead of

if game.Workspace.Zombie1 = false then

use

game.Workspace.Zombie1.HumanoidDied:wait()

that waits until zombie1 dies.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 03:48 PM
game.Workspace.Zombie1.Humanoid.HumanoidDied:wait()

pardon me
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
07 Aug 2012 03:50 PM
game.Workspace.Zombie1.Humanoid.Died:wait()

To be corrected.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 03:50 PM
dangit.
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 04:04 PM
Okay :)
and theres no ends because this is just a sample. not the full script...
And what if I wanted to just have like 10 zombies in the Lighting named Zombie -Level: And every round the -Level: changed from 1 to 2, etc... and there Health to +5 every round
This way I wont have to flood the Lighting with Zombies. Then it would be laggy
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 04:05 PM
use clone()
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 04:07 PM
Then how would I change their level and health?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 04:08 PM
level isn't a property of humanoid

you can change a humanoid object's maxhealth and health though
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 04:14 PM
like if itd round two then, game.Lighting.Zombie:clone().Parent = game.Workspace
game.Workspace.Zombie.Health = +10
Like that?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 04:16 PM
well there's a bit of a problem... when you clone multiple zombies into the workspace, they all have the same names. you'll have to be a little more creative.

i recommend you invest more time into learning how to script.
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 04:19 PM
This is how I learn. And I dont have a computer anymore. So whats the point of going to all those fancy sites. once I get my Laptop I will. Until then. I learn from you guys :)
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
07 Aug 2012 04:23 PM
it's too much working helping someone who doesn't know how to script. i would recommend reading a guide before approaching a task like this.
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 04:46 PM
I can Script... A Bit :)
I'll just ask my friend Logitech101 for help. Im his manager.
Report Abuse
HellishKid is not online. HellishKid
Joined: 22 Jul 2012
Total Posts: 170
07 Aug 2012 07:38 PM
mich, not even worth the lie, -_-...
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 08:08 PM
Uh... What do you think I'm lying about? I am not lying about anything. I never Lie.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
07 Aug 2012 08:11 PM
y u no wook at mwah butiful skrop?



local z
local t=1
local h = Instance.new("Hint",game.Workspace)
game.Lighting.FogEnd = "150"
while wait()do
if r(t)then
t=t+1
end
end
function r(n)
pcall(function()z:Remove()end)
z=game.Lighting.Zombie:Clone()
z["Humanoid"].MaxHealth=z["Humanoid"].MaxHealth*n*10
z["Humanoid"].Health=z["Humanoid"].MaxHealth
h.Text="Round: "..n
Delay(3,function()h.Text=""end)
z["Humanoid"].Died:wait()
return true
end
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 08:20 PM
Bcuz ur beutifool scropt ish coplicated. Hehe. I'll probually use it and modify it. But this forum Post will explain the script concept better than my other :)
Report Abuse
HellishKid is not online. HellishKid
Joined: 22 Jul 2012
Total Posts: 170
07 Aug 2012 08:25 PM
mich, everyone lies, including you.
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
07 Aug 2012 08:27 PM
Bcuz ur beutifool scropt ish coplicated. Hehe. I'll probually use it and modify it. But this forum Post will explain the script concept better than my other :)
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
20 Aug 2013 06:38 PM
bump
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
20 Aug 2013 06:52 PM
How would I do it so the rounds progress on their own and zombies teleport to bricks (Spawns) and increase health every round, and have more every round
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
20 Aug 2013 07:49 PM
bump
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