joedajoester Posted June 19, 2012 Share Posted June 19, 2012 (edited) function party (getRootElement()) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) end addEventHandler("onClientResourceStart", party) Doesnt do anyhting, i need it to flash the sky and water different colors. I started out with the sky but this doesnt work Edited June 19, 2012 by Guest Link to comment
Castillo Posted June 19, 2012 Share Posted June 19, 2012 function party ( ) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) end addEventHandler ( "onClientResourceStart", resourceRoot, party ) -- You forgot to attach it to your function. Link to comment
joedajoester Posted June 19, 2012 Author Share Posted June 19, 2012 Thanks for the quick reply it doesnt flash the colors though, its just a solid rainbow color Link to comment
Castillo Posted June 19, 2012 Share Posted June 19, 2012 That's because you must make a timer to be flashing. setTimer Link to comment
joedajoester Posted June 19, 2012 Author Share Posted June 19, 2012 Thank you soo much i got it 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