MaxproGlitcher

ProximityPrompt Duration

Jun 25th, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. local targetDuration = 0 -- Change it here!
  3.  
  4. local function applyDuration(prompt)
  5. if prompt:IsA("ProximityPrompt") then
  6. coroutine.wrap(function()
  7. while prompt and prompt.Parent do
  8. if prompt.Duration ~= targetDuration then
  9. pcall(function()
  10. prompt.Duration = targetDuration
  11. end)
  12. end
  13. wait(0.2 + math.random() * 0.15)
  14. end
  15. end)()
  16. end
  17. end
  18.  
  19. for _, obj in pairs(workspace:GetDescendants()) do
  20. applyDuration(obj)
  21. end
  22.  
  23. workspace.DescendantAdded:Connect(function(newObj)
  24. wait(0.05)
  25. applyDuration(newObj)
  26. end)
  27.  
Advertisement
Add Comment
Please, Sign In to add comment