UserInputService.InputBegan:connect(function(O,K)local a=ActionFromInputObject(O)if a then actionBegan:Fire(a,K)end end)UserInputService.InputEnded:connect(function(O,K)local a=ActionFromInputObject(O)if a then actionEnded:Fire(a,K)end end)


UserInputService.InputBegan:connect(function(inputObject, processed)
	local action	= ActionFromInputObject(inputObject)
	
	if action then
		actionBegan:Fire(action, processed)
	end
end)

UserInputService.InputEnded:connect(function(inputObject, processed)
	local action	= ActionFromInputObject(inputObject)
	
	if action then
		actionEnded:Fire(action, processed)
	end
end)
