My print printes twice even tough there is a debounce it should only fire once else my script will kinda glitch
local Debounce = false uis.InputBegan:Connect(function(input) if Debounce == false then if input.KeyCode == Enum.KeyCode.Space then Debounce = true print("Space bar pressed") local Screens = 1 if Screens == 1 then script.Parent.Warn1.Visible = false script.Parent.Warn2.Visible = true Screens = 2 warn(Screens) MakeUIAlive2() elseif Screens == 2 then script.Parent.Warn2.Visible = false script.Parent.HeadphonesNotice.Visible = true Screens = 3 warn(Screens) MakeUIAlive3() elseif Screens == 3 then print("Ok?") end end end end)