Repro:
- Create a
Part
with aProximityPrompt
parented to it. Then parent said part toWorkspace
. - Create a
LocalScript
wherever preferred as long as it is able to run. - Copy and paste either of these into the
LocalScript
game:GetService("ProximityPromptService").PromptHidden:Connect(function(prompt)
prompt:Destroy()
end)
Or
local prompt = workspace:WaitForChild("Part"):WaitForChild("ProximityPrompt")
prompt.PromptHidden(function()
prompt:Destroy()
end)
- Start a Play test. Then run inside of the
ProximityPrompt
’s radius then back out of it. The client will crash differently depending on if this was testing on the Player or the Studio client.
This repro file uses ProximityPromptService.PromptHidden
PromptHiddenRepro.rbxl (13.1 KB)
Expected Behavior
I expect Roblox to not crash when exiting the radius of a ProximityPrompt
to destroy it.
Actual Behavior
On the Player client, this will cause the “An unexpected error occurred” message to appear
On the Studio client, this will cause it to immediately crash to desktop with no .dmp
being provided afterwards
Other Information
This started happening pretty recently but seems to have been happening since January of this year.