ATtiny85

I'm having a trouble with my ATtiny85 chip my idea is to operate a relay shield with ATtiny85 chip and i'm using HC-05 Bluetooth and relay shield but the problem is that when i send a command to ATtiny85 through app it works fine for 1 or 2 relay (on/off) but when i turn "on" all 3 relays it should "on" but takes to much time to turn off back why ? I'm using 5 volt cell phone charger i tried more other charger as well but problem is still same sometimes it works or sometimes not.
thanks.

Either electrical noise from the closing of the relays, or a bug in the code that you haven’t posted.

thanks DrAzzy but here its my code
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0,1); //Rx,Tx
int Relay1 = 2;
int Relay2 = 3;
int Relay3 = 4;
int Received = 0;
int Rs1 = 0;
int Rs2 = 0;
int Rs3 = 0;
void setup() {
mySerial.begin(9600);
pinMode(Relay1,OUTPUT);
pinMode(Relay2,OUTPUT);
pinMode(Relay3,OUTPUT);

}

void loop() {
if(mySerial.available()>0)
{
Received = mySerial.read();
}
if(Rs1==0 && Received==‘1’)
{
digitalWrite(Relay1,HIGH);
Rs1=1;
Received=0;
}
if(Rs1==1 && Received==‘1’)
{
digitalWrite(Relay1,LOW);
Rs1=0;
Received=0;
}

if(Rs2==0 && Received==‘2’)
{
digitalWrite(Relay2,HIGH);
Rs2=1;
Received=0;
}
if(Rs2==1 && Received==‘2’)
{
digitalWrite(Relay2,LOW);
Rs2=0;
Received=0;
}

if(Rs3==0 && Received==‘3’)
{
digitalWrite(Relay3,HIGH);
Rs3=1;
Received=0;
}
if(Rs3==1 && Received==‘3’)
{
digitalWrite(Relay3,LOW);
Rs3=0;
Received=0;
}
}

and the other thing is when i plug to the pc it works fine but on charger its not working when all relays turn ON

You’ve got some obvious errors. Try this (untested):

#include <SoftwareSerial.h>
SoftwareSerial mySerial(0,1); //Rx,Tx
int Relay1 = 2;
int Relay2 = 3;
int Relay3 = 4;
int Received = 0;
int Rs1 = 0;
int Rs2 = 0;
int Rs3 = 0;
void setup() {
  mySerial.begin(9600);
  pinMode(Relay1,OUTPUT);
  pinMode(Relay2,OUTPUT);
  pinMode(Relay3,OUTPUT);

}

void loop() {
  if(mySerial.available()>0)
  {
    Received = mySerial.read();
  }
  if(Rs1==0 && Received=='1')
  {
    digitalWrite(Relay1,HIGH);
    Rs1=1;
    Received=0;
  }
  else if(Rs1==1 && Received=='1')
  {
    digitalWrite(Relay1,LOW);
    Rs1=0;
    Received=0;
  }
  
  else if(Rs2==0 && Received=='2')
  {
    digitalWrite(Relay2,HIGH);
    Rs2=1;
    Received=0;
  }
  else if(Rs2==1 && Received=='2')
  {
    digitalWrite(Relay2,LOW);
    Rs2=0;
    Received=0;
  }
  
  else if(Rs3==0 && Received=='3')
  {
    digitalWrite(Relay3,HIGH);
    Rs3=1;
    Received=0;
  }
  else if(Rs3==1 && Received=='3')
  {
    digitalWrite(Relay3,LOW);
    Rs3=0;
    Received=0;
  }
}

thanks WattsThat im using 4 relay module this one down below
https://www.google.com.pk/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&ved=2ahUKEwjImq3imufdAhWPqaQKHZgzA_MQjRx6BAgBEAU&url=http%3A%2F%2Fwww.makerfabs.com%2Findex.php%3Froute%3Dproduct%2Fproduct%26product_id%3D85&psig=AOvVaw2BpEor7eJ-vOmJfTapo9RL&ust=1538550860587759odule