Help with Making Text Flicker

Hello I am not really a “scripting person” (obviously why I am here) and I need some help trying to make text flicker. I have looked on Google but all I could find was people with this problem. I am trying to make a sign that has the text flickering with it’s light. I got the light to flicker so I thought I might as well use the same script. That was a bad idea :frowning: . Please help, here’s the script

var FlashingText : MeshRenderer;
FlashingText.enabled = false;

function FixedUpdate () {

var RandomNumber = Random.value;


if(RandomNumber<=.7){
FlashingText.enabled = true;

 }
 
 else FlashingText.enabled = false;
 
 }

That should be working. Did you remember to apply something to the variable?

This is gonna sound really stupid but… what do you mean by apply something?

(I really am a noob :hushed: )

Did you actually assign the variable a mesh? Did you go into the inspector, and select a mesh for the flashingtext variable?

I assigned the actual text instead of the renderer :stuck_out_tongue: Yep I’m gonna need to learn more scripting… well basic unity for that matter :smile:

Ah. Well, good luck, don’t hesitate to ask for more help on the way.