¿Why is ProximityPrompt:InputHoldBegin() not working?

Hey! So I’m trying to trigger the ProximityPrompt from the Client waiting for the server to respond. This is the code.

SERVER:

local remote_two = Instance.new("ProximityPrompt")
remote_two.Name = "LoL_Manager"
remote_two.Parent = game:GetService("Lighting")

task.spawn(function()
	remote_two.Triggered:Connect(function(player)
		print("PROXIMITYPROMPT ACTIVATED!")
	end)
	
	remote_two.PromptButtonHoldBegan:Connect(function(player)
		print("PROXIMITYPROMPT ACTIVATED!")
	end)
end)

CLIENT:

repeat task.wait() until game:GetService("Lighting"):FindFirstChild("LoL_Manager")
local prompt = game:GetService("Lighting"):FindFirstChildOfClass("ProximityPrompt") or game:GetService("Lighting"):FindFirstChild("LoL_Manager")
prompt:InputHoldBegin()
wait(prompt.HoldDuration)
prompt:InputHoldEnd()

Wait a min, how can you make a ProximityPrompt a child of Lighting ??? I mean you can, but then how can you trigger it ?

1 Like

using the namecall InputHoldBegin…

To run it, you need to trigger it first and see it. Are you able to see it ? How can it be even seen using Lighting I don’t get.