this is a good one... mind funk

 const int Pulse = 2;
 const int button = 4;
 
 
 
void setup() {   
 pinMode(Pulse, OUTPUT); 
 pinMode(button, INPUT);  
 
}

void loop() {

int buttonstate = digitalRead (button);  

 while(buttonstate == LOW){
    digitalWrite(Pulse, HIGH);  
    delay(75);             
    digitalWrite(Pulse, LOW);    
    delay(25); 
}}

Ok thats what I have now but it just ignores the button press and is 5v all the time even when i press the button... If i remove the ATtiny it works fine.