All my proximity prompt stops working after using the door a few times

can anyone tell me why this is happening and how i can fix it

1 Like

Could we see how the code looks?

the thing about the code is that it works its reused from my other game and it works perfectly fine there

and all the proximity prompts work until i use the door 6 or so times then ALL the proximity prompts in the game stop working

We’re asking for the raw code, as we won’t be able to diagnose without being able to play with it.

Copy the relevant code, and sandwich them between two of these: ```

```
like this
```
or

like this
local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.Interact.Position
	local gui = script.Parent.Gui:Clone()
	gui.Parent = player.PlayerGui
	script.Parent.Door:Play()	
	player.Character.Humanoid.WalkSpeed = 0
	player.Character.Humanoid.JumpPower = 0
	wait(1)	
	gui:Destroy()
	player.Character.Humanoid.WalkSpeed = 16
	player.Character.Humanoid.JumpPower = 50
end)

Check your Output window (go to the View tab, and find the Output icon). Do you receive any error relevant to this issue?