Jump to content

easiest way to do this?


xTravax

Recommended Posts

I made an example with the onClientRender event.

There might be an easier way to do this, but this is what came into my mind.

Untested.

value = 0 
des = false 
function onRender() 
    value = value + (des and -1 or 1) 
    if value >= 20 or value <= 0 then 
        des = not des 
    end 
end 
addEventHandler("onClientRender",root,onRender) 

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...