Proximity Prompt not working when in a part welded to a tweening part

I want to make it so that the proximity prompt does work while in a part that is welded to a platform that is tweening.

When I play the tween on the platform, the proximity prompt which is in a part welded to the platform no longer works, but at the start when the tween hasn’t played yet it does work. When the platform returns to its original position at the end, the proximity prompts are finally usable again.

Excuse the poor quality, I had to compress.

I have tried using local scripts (it doesn’t work because the food has to be duplicated)
I’ve tried unanchoring (not viable, it’s buggy)

Is there anything I could do to make it work again? And if it’s just not possible, why? I’d appreciate any help I can get!

The fact that the proximity prompt itself appears to be functioning correctly, I believe the issue is somewhere within your code.

Would you mind sharing any relevant snippets?

image

Food script:

local ServerStorage = game:GetService("ServerStorage")
local foodTool = ServerStorage["Food (CLICK TO EAT)"]
local foodPart = script.Parent.Parent.Food

script.Parent.Attachment.FoodProximityPrompt.Triggered:Connect(function(player)
	wait(0.1)
	script.Parent.Attachment.FoodProximityPrompt.Enabled = false
	wait(0.1)
	script.Parent.Attachment.KnifeProximityPrompt.Enabled = true
	local foodCopy = foodTool:Clone()
	foodCopy.Parent = player.Backpack
	foodPart:Destroy()
end)

Can you add a print statement to check if the prompt is actually going through?

I did try that, the prompt wasn’t going through at all.

May I ask why you have those waits in there?

I made the game with this script over a year ago and just revisited it now, so I can’t exactly answer that. I assume it’s because I wanted a delay…

Update
Hello all who wish to help, I’ve discovered that if I don’t touch the food before starting the tween, I’m able to use the food proximity prompt, but after, I cannot use the knife proximity prompt.

Hey, did you ever find a solution to this? Im having thesame issue currently