How do i make this accessory be visible for a custom time like 1sec only

So Im making a game where you will be lasered on your head when you die,
Its a part called “Handle” put in an “Accessory” object that’s put in the “StarterCharacterScripts”

( I want a script where the accessory is visible right after the players humanoid is on 0, And where i can put how many seconds its gonna be visible for. )

I apprechiate if someone could take the effort to write a script to me or help me in any way

You can check if humanoids health is 0 with an if statement and Humanoid.HealthChanged . Make the character wear the accessory and after a specific amount of time make it not wear the accessory. Writing scripts is kinda against the rules. Im just giving you an idea.

You can check the docs.

HealthChanged: Humanoid | Documentation - Roblox Creator Hub
If statements: Intro to If Statements | Documentation - Roblox Creator Hub
Accessory: Accessory | Documentation - Roblox Creator Hub

i want a script but thank u ///

I might be wrong but I’m pretty sure they don’t want people writing an entirely new script for others

ah is that a new rule or something? nvm ill just use chatgpt instead.