its because you are disabling the script on line 13. If you are trying to add debounce, use classic function instead of anonymous
Try this instead:
local debounce = false
local function showGUI()
if debounce == false then --checks for debounce
debounce = true --enables the debounce
ScreenGUI.Enabled = true
task.wait(0.01)
textLabel.Visible = true
voiceLine:Play()
task.wait(5)
textLabel.Visible = false
ScreenGUI.Enabled = false
debounce = false --sets the debounce to false
end
end
model.ProximityPrompt.Triggered:Connect(showGUI) --connects the function into event