[🎃] Criminality
4.8k Views
38 Executions

No hold duration Open Source

Criminality
A_Coder
A_Coder10 followers
2 years ago
Please login to perform these actions:

No hold duration Open Source is a Criminality script for Roblox, uploaded to ScriptBlox on Jan 27, 2025.

Does it work?

No reports yet

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

Also noticed:

Description

[+] Makes Proximity Prompt's Hold Duration = 0

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local proximityPromptService = game:GetService("ProximityPromptService")

-- Function to set up ProximityPrompts
local function setupProximityPrompt(prompt)
	if prompt:IsA("ProximityPrompt") then
		-- Set HoldDuration to 0 when it's enabled (i.e., when you get close)
		prompt:GetPropertyChangedSignal("Enabled"):Connect(function()
			if prompt.Enabled then
				prompt.HoldDuration = 0
			end
		end)

		-- Ensure it's already set if enabled
		if prompt.Enabled then
			prompt.HoldDuration = 0
		end
	end
end

-- Check proximity to ProximityPrompts
local function checkProximity()
	while true do
		local closestPrompt = nil
		local closestDistance = math.huge

		for _, descendant in ipairs(workspace:GetDescendants()) do
			if descendant:IsA("ProximityPrompt") and descendant.Enabled then
				local distance = (character.HumanoidRootPart.Position - descendant.Parent.Position).magnitude
				if distance < closestDistance then
					closestDistance = distance
					closestPrompt = descendant
				end
			end
		end

		if closestPrompt and closestDistance < 10 then -- Adjust the distance threshold as needed
			setupProximityPrompt(closestPrompt)
		end


Comments

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