Universal Script 📌
138 Views
780 Executions

Proxmity Prompt Hold Duration Script (Open Source)

Universal Script 📌
vaxirn
vaxirnFirst script
2 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Works Of any game You can adjust the hold duration by changing the number in the `local HOLD_DURATION = 0` line at the top of the script

View Raw
-- SET THE HOLD DURATION HERE (e.g., 0 = Instant Interaction)
local HOLD_DURATION = 0

local function makePromptInstant(prompt)
	if prompt:IsA("ProximityPrompt") then
		prompt.HoldDuration = HOLD_DURATION
	end
end

local function processContainer(container)
	for _, descendant in ipairs(container:GetDescendants()) do
		makePromptInstant(descendant)
	end

	container.DescendantAdded:Connect(function(descendant)
		makePromptInstant(descendant)
	end)
end

processContainer(workspace)
processContainer(game:GetService("ReplicatedStorage"))


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!