Can you guys help me script this? I've been aimlessly been trying to code I haven't stressed this much over 1 thing

I have 2 folders
NPCSpawn from workplace
NPCSpawning from Replicated storage
they have 2 rigs inside each folder with prox inside their torso

What I want is to find all the prox and change the prox hold duration by reducing it by 0.2
the prox default is 6.2

it should reduce both NPCSpawn and NPCSpawning’s prox hold duration

1 Like

What does your script look like?

Use a for loop and get the descendants then check if “v” (v can be any name) is a proximimity prompt and reduce its “.HoldDuration”.

For example,

if v:IsA("ProximityPrompt") then 
   v.HoldDuration = v.HoldDuration-0.2 
end