joedajoester Posted June 19, 2012 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
Castillo Posted June 19, 2012 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.
joedajoester Posted June 19, 2012 Author Posted June 19, 2012 Thanks for the quick reply it doesnt flash the colors though, its just a solid rainbow color
Castillo Posted June 19, 2012 Posted June 19, 2012 That's because you must make a timer to be flashing. setTimer
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