Hello developers! So I am making custom proximity prompt, and I want to create custom progress bar, and that’s what this topic is about, I need to get ProximityPrompt’s progress, like when it’s held.
Mind sending your code?
I want to know if there’s a way to get ProximityPrompt’s progress, why do you need my code then?
You’re being extremely unclear and you posted a topic in scripting support without any sort of script
I want to know a way to get ProximityPrompt’s progress, why do you need my code if I need to find a way to get ProximityPrompt’s progress
Alright, good luck with your code champ. Next time don’t make a thread in scripting support without any script.
By progress do you mean the amount of time it was held?
I think he wants to know how long one has been pressing E or whatever key.
I found a devhub post on this, lemme find it
Yes, something like that! Why doesn’t roblox like shorter replies.
I am using that so yeah. Making this longer so Roblox ain’t angry.
Quick question but what are you trying to do with the progress of the proximity prompt?
I bet he’s making a custom prompt
Make progress bar so it shows progress of prompt.
Yes I am. (Longer so i can post)
it already does that?
I dont get why you need to do it again, unless you want a custom prompt GUI
I think he does want to make it a custom prompt like Flee the Facility
Yes, that’s the point of this topic xd.
Well that shouldn’t be too difficult then. Basically, the code would have to be something like this:
local holdStart,duration,holding
function promptButtonHoldBegan(proximityPrompt)
holding = true
holdStart = tick()
duration = proximityPrompt.HoldDuration
end
function promptButtonHoldEnded(proximityPrompt)
holding = false
end
function update()
progressBar.Visible = holding and tick() - holdStart < duration
progressBar.Size = UDim2.new((tick() - holdStart)/duration,0,1,0)
end
Thanks very much!!! (Don’t mind this, Im just making reply longer so Roblox tolerates it)