Advertisement
VenoxComeback

Untitled

Mar 7th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. -- Adjust all existing and future ProximityPrompt instances to trigger instantly
  2. local function adjustProximityPrompts()
  3. -- Loop through all descendants of the game
  4. for _, obj in pairs(game:GetDescendants()) do
  5. -- Check if the object is a ProximityPrompt
  6. if obj:IsA("ProximityPrompt") then
  7. -- Set HoldDuration to 0 for instant activation
  8. obj.HoldDuration = 0
  9. end
  10. end
  11. end
  12.  
  13. -- Call function to adjust existing ProximityPrompts
  14. adjustProximityPrompts()
  15.  
  16. -- Listen for any new ProximityPrompt instances being added
  17. game.DescendantAdded:Connect(function(descendant)
  18. if descendant:IsA("ProximityPrompt") then
  19. -- Set HoldDuration to 0 for new prompts
  20. descendant.HoldDuration = 0
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement