How To Check if a proximity prompt have been triggered in a local script?

heres the problem i want to check if a player have triggered a proximity prompt in a local script, but when the proximity prompt have been triggered nothing prints in the script shown.

i have tried a lot of methods such as using a remote event but that also didnt work anyways heres the script

script.Parent.ProximityPrompt.Triggered:Connect(function()
	
	print("Triggered From Client")
	
end)
3 Likes

Have you gotten any errors in the output?

1 Like

No nothing in the output unfortunately thats why i was confused

1 Like

Are you sure your actually activating the prompt correctly?

Do you have that RequiresLineOfSight option on?

1 Like

well… this is prob studio’s bug or this is something interersting…

1 Like

i mean the script is there shown , i have a proximity prompt inside a part and a script inside the proximity prompt so im pretty sure its all perfect

Can you send a video of you prompting it with the console in clear view please

Can you at least maybe show the heirarchy of parts where the proximity prompt is located?

sorry for the long wait , the video took a long time uploading lol

heres the link proximity prompt issue - YouTube

1 Like

what is the interaction time on the proximity prompt

The duration of the proximity prompt is zero seconds

Fill in the player parameter and then trying printig the player that triggered the proximity prompt

it works in the server but nothing prints in the client

Yeah because you have it on a server script not in a local script

its feels exactly like the local script have been disabled or something, nothing prints

Where exactly do you have the local script if you dont mind me asking

i mean it works and prints in the server but when i copy the exact script in a local script it wont work and nohting prints

it is currently in the proximity prompt

1 Like

And where exactly is the proximity prompt

1 Like

it is inside the part

(ignore this)