Hello! Im having trouble with a system! Is it possible to detect when someone Finishes a proximity prompt, like when the 5 seconds of holding the proximity prompt end?
And i need it thru local and proximity service!
Prompt.Triggered:Connect() should be what you are looking for, its an event that fires every time someone successfully holds the prompt down for the time set.
ohh nevermind, it works i just broke it on the serverside lol
old script:
if handcuff ~= "Handcuff" then
local Humanoid = plr.Character:FindFirstChild("Humanoid")
local HumanoidRootPart = plr.Character:FindFirstChild("HumanoidRootPart")
if Humanoid and HumanoidRootPart then else return end
ArrestingValue.Value = false
ArrestedValue.Value = true
HumanoidRootPart.Anchored = false
return
end
renewed script:
if handcuff == "Handcuff" then
local Humanoid = plr.Character:FindFirstChild("Humanoid")
local HumanoidRootPart = plr.Character:FindFirstChild("HumanoidRootPart")
if Humanoid and HumanoidRootPart then else return end
ArrestingValue.Value = false
ArrestedValue.Value = true
HumanoidRootPart.Anchored = false
return
end