@SelenaWirthlin Greetings from the HP Community!
If that's an active stylus that came with the device, please consider replacing the battery or using it with a full charge, if that doesn't work, check if it works on an alternate device,
And if it doesn't work on other devices as well, you may want to have it replaced to resolve the issue.
Keep us posted,
If you would like to thank us for our efforts to help you,
Give us a virtual high-five by clicking the 'Thumbs Up' icon below, followed by clicking on the "Accept as solution" on this post,
Have a great day!
Riddle_Decipher
I am an HP Employee