Jump to content

Strobe sky and water


Recommended Posts

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 by Guest
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...