Fixed it. thx for the help. for anyone else that’s made the same mistake. just add a delay in front of the function.