I want to achieve having the proxmity prompt that has the players name enabled if not, it does not show.
The issue is it messes with all proxmity prompts across the whole game.
I tried rewriting the script and nothing has worked, This is the first script written.
-- local Player = game:GetService("Players").LocalPlayer
local ProximityService = game:GetService("ProximityPromptService")
ProximityService.PromptShown:Connect(function(prompt)
if prompt.Name == Player.Name then
prompt.Enabled = true
else
prompt.Enabled = false
end
end)