I want to make a phone charging system but for some reason the proximity prompt doesnt show up when i come up to the electrical socket even though i placed the proximity prompt in it
Click on the ProximityPrompt and then use the move feature which you would move parts on Roblox to ensure that the little ball (which should be where the ProximityPrompt is) is in the correct area where the player can interact with it.
Edit: Ignore me I swear that used to be a thing but I can’t see it any more when I try.
local proximity = script.Parent.ProximityPrompt
local ProximityPromptService = game:GetService("ProximityPromptService")
proximity.Triggered:Connect(function()
-- your code here
end)
It should not at all affect if the prompt shows or not. I don’t think you really understand that the issue the user has is the prompt will not show NOT that the code will not work.
An issue I have had with proximity prompts before is where due to a part being small it has not shown. You could try to add a larger part (but just make it transparent) and see if that works at all.
This too, try moving the part with proximity prompt outside the model itself and to an empty place instead and see if it works. since the model could be blocking the proximity prompt.
It probably has to do with the properties of your proximity prompt. Try disabling the “RequiresLineOfSight” property as it might be inside another part. If that doesn’t work try deleting the ProximityPrompt object and inserting a new one which has the default properties.
Also make sure the prompt part is anchored and check if it’s actually there when testing (hasn’t fallen through the map).
You need to put the property: “RequiresLineOfSight”'s value on false, and while this will make it so that you can trigger the proximity prompt from behind the wall, you could also just make the range less, and even if not, it will definitely be trigger-able.