4.8k Views
38 Executions
No hold duration Open Source
Criminality
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 yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
[+] Makes Proximity Prompt's Hold Duration = 0
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
0Log in to join the conversation. Login
No comments yet. Be the first!![[🎃] Criminality](/images/script/4588604953-1722379322773.png)
![[🎃] Criminality](/images/script/4588604953-1725003170981.png)
![[🎃] Criminality](/images/script/4588604953-1789124109146.jpg)
![[🎃] Criminality](/images/script/4588604953-1788175341212.jpg)