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 » Scripters
Home Search
 

Re: i have 2 if functions but only 1 runs

Previous Thread :: Next Thread 
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
13 May 2017 12:16 PM
rip :(


r+://291222021
Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
13 May 2017 12:22 PM
statements*

aren't you from ot?
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
13 May 2017 12:22 PM
RT*


r+://291222021
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
13 May 2017 12:31 PM
i also tried elseif and that didnt work


r+://291222021
Report Abuse
MyMainManKeef is not online. MyMainManKeef
Joined: 04 Jul 2016
Total Posts: 66
13 May 2017 12:33 PM
post the code
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
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 is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
13 May 2017 12:39 PM
Talking about functions, you should try defining some
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
13 May 2017 12:41 PM
i meant if statement


r+://291222021
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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