ContextActionService function linked to Tab key keeps triggers upon join

I don’t know if this is a bug or not, but the function in contextactionservice always run for the first time since players joins when assigned to Tab key.

local function _mettreClassement(_, input: Enum.UserInputState)
	if UserInputService.TouchEnabled then
		if not _pret then
			-- TODO: Cet pratique de "Mot De Pass" est pas effectif.
			ReplicatedStorage[_G._pMotDePass]["_lesEffets"]:Fire("_attention", "Classement n'est pas encore prêt !")
			return
		end
		_ui.Frame.Visible = not _ui.Frame.Visible
		_ui.horloge.Visible = not _ui.Frame.Visible and Player.Character:GetAttribute("_figurePret")
		return
	end
	if input == Enum.UserInputState.Begin then
		if not _pret then
			ReplicatedStorage[_G._pMotDePass]["_lesEffets"]:Fire("_attention", "Classement n'est pas encore prêt !")
		end
		_ui.Frame.Visible = true
		_ui.horloge.Visible = false
	else
		print("function has ran")
		_ui.horloge.Visible = Player.Character:GetAttribute("_figurePret")
		_ui.Frame.Visible = false
	end
end

_G._mettreClassement = _mettreClassement

ContextActionService:BindAction("_classMent", _mettreClassement, false, Enum.KeyCode.Tab)

image

it’s a bug…

[charrryysssssys]