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()