| |
|
JoshRBX
|
  |
| Joined: 19 May 2012 |
| Total Posts: 8778 |
|
|
| 13 May 2017 12:22 PM |
statements*
aren't you from ot? |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 May 2017 12:31 PM |
i also tried elseif and that didnt work
r+://291222021 |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 May 2017 12:33 PM |
if script.Parent.Round.Value == 1 then int = 0 inc = 2.5 max = 1 while int ~= max do int = int + 1 local zamb = game.ReplicatedStorage.Enemies.Enemy:Clone() zamb.Parent = workspace spwan = workspace.Spawns:GetChildren() spawnz = spwan[math.random(1,#spwan)] zamb.Torso.CFrame = spawnz.CFrame + Vector3.new(0,5,0) wait(inc) end script.Parent.ZombiesKilled.Changed:connect(function() if script.Parent.ZombiesKilled.Value == 1 thensc######################### #c######################### # #s################################## 0 for i,v in next, game.Players:GetChildren() do
v.PlayerGui.Main.TextButton.Visible = true end end end) elseif script.Parent.Round.Value == 2 then int = 0 inc = 2.5 max = 10 while int ~= max do int = int + 1 local zomb = game.ReplicatedStorage.Enemieslocal zamb = game.ReplicatedStorage.Enemies[math.random(1,#zomb)] local za###### #a############z############## workspace
spwan = workspace.Spawns:GetChildren() spawnz = spwan[math.random(1,#spwan)] zammb2.Torso.CFrame = spawnz.CFrame + Vector3.new(0,5,0) wait(inc) end script.Parent.ZombiesKilled.Changed:connect(function() if script.Parent.ZombiesKilled.Value == 10 then######################### # ######################### # # ################################## = 0 for i,v in next, game.Players:GetChildren() do v.PlayerGui.Main.TextButton.Visible = true end end end) end
r+://29122202121 |
|
|
| Report Abuse |
|
|
JoshRBX
|
  |
| Joined: 19 May 2012 |
| Total Posts: 8778 |
|
|
| 13 May 2017 12:39 PM |
| Talking about functions, you should try defining some |
|
|
| Report Abuse |
|
|
|
| 13 May 2017 12:41 PM |
i meant if statement
r+://291222021 |
|
|
| Report Abuse |
|
|