[UNSOLVED] Proximity Prompt Not Working?

Hey Devforum, for some reason my proximity prompt script isn’t working. I tested Triggered and TriggerEnded, and neither worked. The script isn’t printing at all, so I decided to take to the devforum. Here is the script:

local Debounce = false
script.Parent.Triggered:Connect(function()
	if Debounce == true then else return end
    Debounce = true
	local Types = "Door"
	game.ReplicatedStorage.RemoteEvent:FireAllClients()
	print('sent2')
	wait(5)
	Debounce = false
	print('sent')
end)

Make this on line 3.

if Debounce == true then return end

The prompt is working. You have been asking the code to break the function via. return when you had the debounce set to false. Either change the line three code piece from:

if debounce == true

Onto:

if debounce == false

Or use the solution from a previous post.