Whenever a player touches a part, progress bar pops up

Hello, I need help in scripting a part in which if a player touches it, a progress bar comes up, the player has to keep touching a part for about 5 seconds and the part will turn Blue, Ive tried scripting this but it keeps breaking.


Can you explain how it is breaking?

1 Like

Can you show the script, maybe we could figure out what’s wrong