Anubhav Posted August 28, 2014 Share Posted August 28, 2014 What do you mean? You wanted it like that:3. No problem. Link to comment
Overkillz Posted August 28, 2014 Author Share Posted August 28, 2014 What do you mean? You wanted it like that:3.No problem. I mean that for the color red be 5 seconds and after change to a random color, the random color be 2 seconds and after back to red color and be for 5 seconds again in red color, after it change to random color and be on it 2 seconds (on the random color) and back to red ....etc Infinite times. If u can't, isn't a problem, this helped me a lot of. Thanks <3 Link to comment
Anubhav Posted August 28, 2014 Share Posted August 28, 2014 local colors = { {r=255,g=0,b=0}, -- SYNTAX: {r=rValue, g=gValue, b=bValue}, } times = "rgbcolor" team = createTeam ( "Team Name" ) function idkname () for k,v in ipairs(colors) do if times == "random" then setTeamColor(team, math.random(0,255), math.random(0,255), math.random(0,255)) times = "rgbcolor" return end if isTimer(timer) then killTimer(timer) timer = setTimer(idkname, 2000, 1) end times = "random" setTeamColor(team, v.r, v.g, v.b) end end timer = setTimer(idkname , 5000, 1) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now