Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to Change Proximity Prompt Hold duration in game?

Im making game when you hold E by 4 sec you can sell this and get Coins and you can for Coins upgrade you stuff and im dont know how to change ProximityPrompt Hold Duration In game beacuse i CANT i can only Off game change hold duration pls help i need SCRIPT when you buy item you hold duration time is shorter 2 times and idk how to make this actually code bellow:

local ProximityPrompt = script.Parent.ProximityPrompt local Player = game.Players.LocalPlayer

while wait() do ProximityPrompt.HoldDuration = Player.DestroyTime.Value end

1 comment

0

May you please format your code? It's kind of hard to read. Thanks!

2 answers

You can just change the Hold Duration by this line of code.

ProximityPrompt.HoldDuration = ProximityPrompt.HoldDuration / 2

Add that line of code to the function that gets called when the "Shorter HoldDuration item" is bought.

This discussion is preserved as it was. New answers, comments, and votes are closed.