of     1   

surviverbunny
#44862627Thursday, March 31, 2011 2:10 AM GMT

while true do wait(2) if script.Parent.Value = 2 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end elseif script.Parent.Value = 1 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end end what is wrong with it?...
Legend26
#44862759Thursday, March 31, 2011 2:12 AM GMT

You use "=" to CHANGE a value. In if statements, you use "==" instead to CHECK a value.
surviverbunny
#44862864Thursday, March 31, 2011 2:14 AM GMT

so would i do as this? while true do wait(2) if script.Parent.Value == 2 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end elseif script.Parent.Value == 1 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end end
KittyMcNewt
#44862865Thursday, March 31, 2011 2:14 AM GMT

Why do you need to different... things? Couldn't you just do: while true do wait(2) if script.Parent.Value = (1, 2) script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value+1 end end
KittyMcNewt
#44862899Thursday, March 31, 2011 2:14 AM GMT

Dang... got here late, AND I forgot double equal signs...
surviverbunny
#44863093Thursday, March 31, 2011 2:18 AM GMT

im doing it as a domination style game type and those are the teams scores so i want them to be seperate
surviverbunny
#44863611Thursday, March 31, 2011 2:28 AM GMT

anyone help me please?
surviverbunny
#44863687Thursday, March 31, 2011 2:30 AM GMT

and oops sorry my mistake ment to post this while true do wait(2) if script.Parent.Value == 2 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end elseif script.Parent.Value == 1 then script.Parent.Parent.Team2.Value = script.Parent.Parent.Team1.Value +1 end end
lupine
#44864540Thursday, March 31, 2011 2:47 AM GMT

elseif does not need an end. Remove the else part or the end after the first if statement.
surviverbunny
#44911137Friday, April 01, 2011 3:27 AM GMT

please just right out what it should be because im confused when everyones says bunch of diffrent things
surviverbunny
#44911156Friday, April 01, 2011 3:28 AM GMT

while true do wait(2) if script.Parent.Value == 2 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 end elseif script.Parent.Value == 1 then script.Parent.Parent.Team2.Value = script.Parent.Parent.Team2.Value +1 end end
lupine
#44911882Friday, April 01, 2011 3:46 AM GMT

while true do if script.Parent.Value == 2 then script.Parent.Parent.Team1.Value = script.Parent.Parent.Team1.Value +1 elseif script.Parent.Value == 1 then script.Parent.Parent.Team2.Value = script.Parent.Parent.Team2.Value +1 end wait(2) end
surviverbunny
#44939264Friday, April 01, 2011 10:09 PM GMT

well that didnt work either but i found out on my own so cya and thanks for trying to helpl everyone

    of     1