|
| 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 |
|
|
| |
|
|
| 07 Aug 2012 03:47 PM |
| Sadly not , would be grossly inefficient and could easily break. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 07 Aug 2012 03:48 PM |
game.Workspace.Zombie1.Humanoid.HumanoidDied:wait()
pardon me |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:50 PM |
game.Workspace.Zombie1.Humanoid.Died:wait()
To be corrected. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 07 Aug 2012 04:07 PM |
| Then how would I change their level and health? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 07 Aug 2012 07:38 PM |
| mich, not even worth the lie, -_-... |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 07 Aug 2012 08:25 PM |
| mich, everyone lies, including you. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|