UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

how to turn lights on/off in a simple increment/decrement script? [SOLVED]

broken avatar :(
Created 3 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
499 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
so the script i want the light control to go in works pretty much like this-

```
whatever = 0;
while(1)
{
    if(whatever > 0)
    {
        whatever--;
        //light "on" code here
    }
    if(whatever == 0)
    {
        //light off code here
    }
    wait .5;
}
```

i put the above example of how my script works so you can see that adding a trigger to the light is no good. (least i think thats the case anyway).

any help would be appreciate.

Thanks

i solved this myself. if you want to know how just hit me up on ugx waw discord with@Phil81334

 
Loading ...