Jump to content
Sign in to follow this  
FoxPater

Help make a script pls )

Recommended Posts

Hey guys. I'm new to this. Help me make a script (out of tiles) for flickering light bulbs.
1) I switch the lever
2) Light bulbs begin to flicker in different colors.
Ps I know that it is very easy, I am baobab, but in this
Thank you in advance!

Edited by FoxPater

Share this post


Link to post
Share on other sites

General guideline:

Create an object a player can interact with.

When the player interacts with this object, enable a time trigger with a delay of 0.2 seconds. (Make sure to set repeat to -1 )

Inside your time trigger script set it to on trigger change the color of your object and after a delay of 0.1 seconds change the color of your object again.

 

This script will cause your light to flicker between 2 colors at a 0.1 second interval.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×